Skip to content

Commit

Permalink
fix in conv repr
Browse files Browse the repository at this point in the history
  • Loading branch information
szagoruyko authored and soumith committed Dec 29, 2016
1 parent 55e850d commit 239ae94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch/nn/modules/conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ def __repr__(self):
padding_str = ', padding=(' + str(padt) \
+ ', ' + str(padh) + ', ' + str(padw) + ')' \
if padt != 0 and padh != 0 and padw !=0 else ''
return self.__class__.__name__ + ' (' + str(in_channels) \
+ ' -> ' + str(out_channels) \
return self.__class__.__name__ + ' (' + str(self.in_channels) \
+ ' -> ' + str(self.out_channels) \
+ ', size=(' + str(kt) + ', ' + str(kh) + ', ' + str(kw) + ')' \
+ ', stride=(' + str(dt) + ', ' + str(dh) + ', ' + str(dw) + ')' \
+ padding_str + ')'
Expand Down

0 comments on commit 239ae94

Please sign in to comment.