MCPcopy Index your code
hub / github.com/pytorch/tutorials / MyModule

Class MyModule

intermediate_source/torch_compile_tutorial.py:120–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119
120class MyModule(torch.nn.Module):
121 def __init__(self):
122 super().__init__()
123 self.lin = torch.nn.Linear(3, 3)
124
125 def forward(self, x):
126 return torch.nn.functional.relu(self.lin(x))
127
128
129mod1 = MyModule()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected