MCPcopy Create free account
hub / github.com/pytorch/examples / __init__

Method __init__

fx/inline_function.py:32–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30# Sample module
31class M(torch.nn.Module):
32 def __init__(self):
33 super().__init__()
34 self.relu = torch.nn.ReLU()
35
36 def forward(self, x):
37 return self.relu(x) + 1.0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected