Skip to content

Commit

Permalink
remove same case for padding_mode to solve #23 (comment) and #23 (com…
Browse files Browse the repository at this point in the history
  • Loading branch information
franckma31 committed Dec 10, 2024
1 parent a8721bb commit f3f32bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deel/torchlip/utils/lconv_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def compute_lconv_coef_1d(
k1 = kernel_size[0]

if (
(padding_mode in ["zeros", "same"])
(padding_mode in ["zeros"])
and (stride == 1)
and (input_shape is not None)
):
Expand All @@ -68,7 +68,7 @@ def compute_lconv_coef(
k1, k2 = kernel_size

if (
(padding_mode in ["zeros", "same"])
(padding_mode in ["zeros"])
and (stride == 1)
and (input_shape is not None)
):
Expand Down

0 comments on commit f3f32bb

Please sign in to comment.