Skip to content

Commit

Permalink
fixed a bug in CoordConvTh with wrong argument in super call
Browse files Browse the repository at this point in the history
  • Loading branch information
intern-svrdc69 committed Jul 16, 2018
1 parent d8d6a2c commit df32673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CoordConv.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def forward(self, input_tensor):
class CoordConvTh(nn.Module):
"""CoordConv layer as in the paper."""
def __init__(self, x_dim, y_dim, with_r, *args, **kwargs):
super(CoordConv, self).__init__()
super(CoordConvTh, self).__init__()
self.addcoords = AddCoordsTh(x_dim=x_dim, y_dim=y_dim, with_r=with_r)
self.conv = nn.Conv2d(*args, **kwargs)

Expand Down

0 comments on commit df32673

Please sign in to comment.