Skip to content

Commit

Permalink
Change "gain" -> "calculate_gain" (pytorch#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaixhin authored and soumith committed Aug 2, 2017
1 parent b0a116e commit 5c2b513
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions super_resolution/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def forward(self, x):
return x

def _initialize_weights(self):
init.orthogonal(self.conv1.weight, init.gain('relu'))
init.orthogonal(self.conv2.weight, init.gain('relu'))
init.orthogonal(self.conv3.weight, init.gain('relu'))
init.orthogonal(self.conv1.weight, init.calculate_gain('relu'))
init.orthogonal(self.conv2.weight, init.calculate_gain('relu'))
init.orthogonal(self.conv3.weight, init.calculate_gain('relu'))
init.orthogonal(self.conv4.weight)

0 comments on commit 5c2b513

Please sign in to comment.