Skip to content

Commit

Permalink
auto-lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-dev-bot committed Jul 15, 2024
1 parent bb9a052 commit 31afacb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ def max_pool2d(
DIMS = 2
x_shape = list(input.shape[2:])
new_kernel = [
kernel_size[i] + (kernel_size[i] - 1) * (dilation[i] - 1) for i in range(DIMS)
kernel_size[i] + (kernel_size[i] - 1) * (dilation[i] - 1)
for i in range(DIMS)
]

if isinstance(padding, int):
Expand Down
1 change: 0 additions & 1 deletion ivy/functional/ivy/experimental/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,6 @@ def _padding_ceil_mode(
added_padding (optional)
The amount of padding added to the original right/bottom padding to ensure correct output size when `return_added_padding` is True
"""

remaining_pixels = (w - f + sum(p)) % s
added_padding = 0
# if the additional pixels potentially captured thanks to ceil mode
Expand Down
1 change: 0 additions & 1 deletion ivy/stateful/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,4 +888,3 @@ def _forward(self, *a, **kw):
ret = self._native_module(*a, **kw)
nested = isinstance(ret, tuple)
return ivy.to_native(ret, nested=nested)

0 comments on commit 31afacb

Please sign in to comment.