MCPcopy Create free account
hub / github.com/Sense-X/Co-DETR / ExampleModule

Class ExampleModule

tests/test_runtime/test_fp16.py:68–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67 # apply to all input args
68 class ExampleModule(nn.Module):
69
70 @auto_fp16()
71 def forward(self, x, y):
72 return x, y
73
74 model = ExampleModule()
75 input_x = torch.ones(1, dtype=torch.float32)

Callers 2

test_auto_fp16Function · 0.85
test_force_fp32Function · 0.85

Calls

no outgoing calls

Tested by 2

test_auto_fp16Function · 0.68
test_force_fp32Function · 0.68