Skip to content

Commit

Permalink
fix: Fixed private attribute name of conv
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm committed Jun 25, 2020
1 parent 47668d4 commit 01687ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holocron/nn/modules/conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(self, in_channels, out_channels, kernel_size, stride=1,

def forward(self, input):
if self.padding_mode != 'zeros':
return F.norm_conv2d(pad(input, self._padding_repeated_twice, mode=self.padding_mode),
return F.norm_conv2d(pad(input, self._reversed_padding_repeated_twice, mode=self.padding_mode),
self.weight, self.bias, self.stride, _pair(0),
self.dilation, self.groups, self.eps)
return F.norm_conv2d(input, self.weight, self.bias, self.stride, self.padding,
Expand Down Expand Up @@ -133,7 +133,7 @@ def __init__(self, in_channels, out_channels, kernel_size, stride=1,

def forward(self, input):
if self.padding_mode != 'zeros':
return F.add2d(pad(input, self._padding_repeated_twice, mode=self.padding_mode),
return F.add2d(pad(input, self._reversed_padding_repeated_twice, mode=self.padding_mode),
self.weight, self.bias, self.stride, _pair(0),
self.dilation, self.groups, self.normalize_slices, self.eps)
return F.add2d(input, self.weight, self.bias, self.stride, self.padding,
Expand Down

0 comments on commit 01687ca

Please sign in to comment.