Skip to content

Commit 5c181fd

Browse files
authored
Address lint checker warning
1 parent fff2de7 commit 5c181fd

File tree

1 file changed

+1
-1
lines changed
  • onnxscript/function_libs/torch_lib/ops

1 file changed

+1
-1
lines changed

onnxscript/function_libs/torch_lib/ops/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9192,7 +9192,7 @@ def aten_unique_consecutive(
91929192
dim: Optional[int] = None,
91939193
) -> tuple[TensorType, TensorType, TensorType]:
91949194
"""unique_consecutive(Tensor self, bool return_inverse=False, bool return_counts=False, int? dim=None) -> (Tensor, Tensor, Tensor)"""
9195-
assert x.dtype == INT64.dtype or x.dtype == INT32.dtype, (
9195+
assert x.dtype in {INT64.dtype, INT32.dtype}, (
91969196
"unique_consecutive not implemented for other type than int32, int64"
91979197
)
91989198
rank_x = len(x.shape)

0 commit comments

Comments
 (0)