Removed np.int usage (#20378)

This commit is contained in:
Ilya Lavrenov 2023-10-11 10:36:00 +04:00 committed by GitHub
parent 8020530e67
commit ba5878ed2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):