Skip to content

Commit 176cb57

Browse files
committed
Fix linting errors and remove accidentally committed change
1 parent 1310262 commit 176cb57

File tree

1 file changed

+0
-3
lines changed
  • onnxscript/function_libs/torch_lib/ops

1 file changed

+0
-3
lines changed

onnxscript/function_libs/torch_lib/ops/core.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8386,8 +8386,6 @@ def aten__unique(
83868386
# We don't need to worry about unique_values since it is a required output.
83878387
indices_size = op.Shape(indices)
83888388
indices_numel = op.ReduceProd(indices_size, keepdims=False)
8389-
inverse_indices_size = op.Shape(inverse_indices)
8390-
inverse_indices_numel = op.ReduceProd(inverse_indices_size, keepdims=False)
83918389
input_size = op.Shape(self)
83928390
# force inverse_indices to depend on indices through input_size
83938391
if indices_numel != 0:
@@ -8466,7 +8464,6 @@ def aten_unique_dim(
84668464
sorted: bool = True, # pylint: disable=unused-argument
84678465
return_inverse: bool = False,
84688466
return_counts: bool = False,
8469-
is_cuda: bool = False
84708467
) -> tuple[TensorType, TensorType, TensorType]:
84718468
"""unique_dim(Tensor self, int dim, bool sorted=True, bool return_inverse=False, bool return_counts=False) -> (Tensor, Tensor, Tensor)"""
84728469

0 commit comments

Comments
 (0)