Skip to content

Commit

Permalink
fix remove_weight_norm() with wrong block (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
benwu95 authored and seungwonpark committed Dec 3, 2019
1 parent 00cb82d commit a7c2351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/res_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ def forward(self, x):

def remove_weight_norm(self):
for block, shortcut in zip(self.blocks, self.shortcuts):
nn.utils.remove_weight_norm(block[1])
nn.utils.remove_weight_norm(block[3])
nn.utils.remove_weight_norm(block[2])
nn.utils.remove_weight_norm(block[4])
nn.utils.remove_weight_norm(shortcut)

0 comments on commit a7c2351

Please sign in to comment.