Skip to content

Commit

Permalink
Fixes #32
Browse files Browse the repository at this point in the history
  • Loading branch information
podgorskiy authored Dec 7, 2020
1 parent 5d8362f commit ec5cd18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lreq.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def __init__(self, in_channels, out_channels, kernel_size, stride=1, padding=0,
self.reset_parameters()

def reset_parameters(self):
self.std = self.gain / np.sqrt(self.fan_in)
self.std = self.gain / np.sqrt(self.fan_in) * self.lrmul
if not self.implicit_lreq:
init.normal_(self.weight, mean=0, std=1.0 / self.lrmul)
else:
Expand Down

0 comments on commit ec5cd18

Please sign in to comment.