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

Method _initialize_weights

super_resolution/model.py:26–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24 return x
25
26 def _initialize_weights(self):
27 init.orthogonal_(self.conv1.weight, init.calculate_gain('relu'))
28 init.orthogonal_(self.conv2.weight, init.calculate_gain('relu'))
29 init.orthogonal_(self.conv3.weight, init.calculate_gain('relu'))
30 init.orthogonal_(self.conv4.weight)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected