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

Method __init__

fx/subgraph_rewriter_basic_use.py:30–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28# Sample module
29class M(torch.nn.Module):
30 def __init__(self):
31 super().__init__()
32
33 def forward(self, x, w1, w2):
34 val1 = torch.neg(w1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected