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

Method __init__

beginner_source/blitz/data_parallel_tutorial.py:102–104  ·  view source on GitHub ↗
(self, input_size, output_size)

Source from the content-addressed store, hash-verified

100 # Our model
101
102 def __init__(self, input_size, output_size):
103 super(Model, self).__init__()
104 self.fc = nn.Linear(input_size, output_size)
105
106 def forward(self, input):
107 output = self.fc(input)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected