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

Method forward

super_resolution/model.py:19–24  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

17 self._initialize_weights()
18
19 def forward(self, x):
20 x = self.relu(self.conv1(x))
21 x = self.relu(self.conv2(x))
22 x = self.relu(self.conv3(x))
23 x = self.pixel_shuffle(self.conv4(x))
24 return x
25
26 def _initialize_weights(self):
27 init.orthogonal_(self.conv1.weight, init.calculate_gain('relu'))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected