Skip to content

Commit

Permalink
Merge pull request #60 from mttgdd/master
Browse files Browse the repository at this point in the history
allow for non-square kernels
  • Loading branch information
kumar-shridhar authored Feb 5, 2021
2 parents 6ece34b + 23e84ac commit d93bad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers/BBB/BBBConv.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, in_channels, out_channels, kernel_size,
super(BBBConv2d, self).__init__()
self.in_channels = in_channels
self.out_channels = out_channels
self.kernel_size = (kernel_size, kernel_size)
self.kernel_size = kernel_size if isinstance(kernel_size, tuple) else (kernel_size, kernel_size)
self.stride = stride
self.padding = padding
self.dilation = dilation
Expand Down

0 comments on commit d93bad5

Please sign in to comment.