Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ADLab-AutoDrive/BEVFusion
/ ExampleModule
Class
ExampleModule
mmdetection-2.11.0/tests/test_runtime/test_fp16.py:67–71 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
65
66
# apply to all input args
67
class
ExampleModule(nn.Module):
68
69
@auto_fp16()
70
def
forward(self, x, y):
71
return
x, y
72
73
model = ExampleModule()
74
input_x = torch.ones(1, dtype=torch.float32)
Callers
2
test_auto_fp16
Function · 0.85
test_force_fp32
Function · 0.85
Calls
no outgoing calls
Tested by
2
test_auto_fp16
Function · 0.68
test_force_fp32
Function · 0.68