Skip to content

Commit

Permalink
Removed np.int usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov committed Oct 11, 2023
1 parent 35308ce commit a48459c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def get_shape_from_slice(input_shape: np.ndarray, slices: List) -> np.ndarray:
in_idx += 1
elif s is np.newaxis:
output_shape.append(1)
elif type(s) in [int, np.int, np.int32, np.int64]: # shrink_axis
elif type(s) in [int, np.int32, np.int64]: # shrink_axis
in_idx += 1
elif s is Ellipsis:
for idx in range(num_ellipsis_inserts):
Expand Down

0 comments on commit a48459c

Please sign in to comment.