Skip to content

Commit 970c11e

Browse files
committed
changing to constant for backward compatibility
1 parent 0ff3bd3 commit 970c11e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fft_conv_pytorch/fft_conv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def fft_conv(
5656
kernel: Tensor,
5757
bias: Tensor = None,
5858
padding: Union[int, Iterable[int]] = 0,
59-
padding_mode: str = 'zeros',
59+
padding_mode: str = 'constant',
6060
stride: Union[int, Iterable[int]] = 1,
6161
dilation: Union[int, Iterable[int]] = 1,
6262
groups: int = 1,
@@ -144,7 +144,7 @@ def __init__(
144144
out_channels: int,
145145
kernel_size: Union[int, Iterable[int]],
146146
padding: Union[int, Iterable[int]] = 0,
147-
padding_mode: str = 'zeros',
147+
padding_mode: str = 'constant',
148148
stride: Union[int, Iterable[int]] = 1,
149149
dilation: Union[int, Iterable[int]] = 1,
150150
groups: int = 1,

0 commit comments

Comments
 (0)