Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dime10 committed Sep 23, 2024
1 parent 5754b87 commit a40eb46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/catalyst/api_extensions/function_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,11 @@ def _get_batch_size(self, args_flat, axes_flat, axis_size):

batch_sizes = []
for i, (arg, d) in enumerate(zip(args_flat, axes_flat)):
shape = np.shape(arg)
if d is None:
continue
elif len(shape) > d:

shape = np.shape(arg)
if len(shape) > d:
batch_sizes.append(shape[d])
else:
raise ValueError(
Expand Down
2 changes: 2 additions & 0 deletions frontend/test/pytest/test_vmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

from catalyst import qjit, vmap

# pylint: disable=bug-vmap-shape


class TestVectorizeMap:
"""Test QJIT compatibility with JAX vectorization."""
Expand Down

0 comments on commit a40eb46

Please sign in to comment.