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

Method forward

beginner_source/blitz/data_parallel_tutorial.py:106–111  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

104 self.fc = nn.Linear(input_size, output_size)
105
106 def forward(self, input):
107 output = self.fc(input)
108 print("\tIn Model: input size", input.size(),
109 "output size", output.size())
110
111 return output
112
113
114######################################################################

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected