Skip to content

Commit

Permalink
allow for non-square kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Gadd committed Jan 24, 2021
1 parent 6ece34b commit 23e84ac
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 23e84ac

Please sign in to comment.