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

Method __init__

beginner_source/profiler.py:58–60  ·  view source on GitHub ↗
(self, in_features: int, out_features: int, bias: bool = True)

Source from the content-addressed store, hash-verified

56
57class MyModule(nn.Module):
58 def __init__(self, in_features: int, out_features: int, bias: bool = True):
59 super(MyModule, self).__init__()
60 self.linear = nn.Linear(in_features, out_features, bias)
61
62 def forward(self, input, mask):
63 with profiler.record_function("LINEAR PASS"):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected