Skip to content

Commit

Permalink
Complete rename
Browse files Browse the repository at this point in the history
  • Loading branch information
a-gardner1 committed May 20, 2024
1 parent 4a39cb6 commit bc26639
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions onnxscript/function_libs/torch_lib/ops/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8383,9 +8383,11 @@ def aten_unique(
"""unique(Tensor self, bool sorted=True, bool return_inverse=False, bool return_counts=False, int? dim=None) -> (Tensor, Tensor?, Tensor?)"""

if dim is None:
unique_values, inverse_indices, counts = aten_unique2(self, sorted, return_inverse, return_counts)
unique_values, inverse_indices, counts = aten__unique2(
self, sorted, return_inverse, return_counts)
else:
unique_values, inverse_indices, counts = aten_unique_dim(self, dim, sorted, return_inverse, return_counts)
unique_values, inverse_indices, counts = aten_unique_dim(
self, dim, sorted, return_inverse, return_counts)
if return_inverse:
if return_counts:
result = unique_values, inverse_indices, counts
Expand All @@ -8405,7 +8407,7 @@ def aten__unique2(
return_inverse: bool = False,
return_counts: bool = False
) -> tuple[TensorType, TensorType, TensorType]:
"""unique(Tensor self, bool sorted=True, bool return_inverse=False, bool return_counts=False) -> (Tensor, Tensor, Tensor)"""
"""_unique2(Tensor self, bool sorted=True, bool return_inverse=False, bool return_counts=False) -> (Tensor, Tensor, Tensor)"""

unique_values, indices, inverse_indices, counts = op.Unique(self, axis=None, sorted=sorted)
# HACK: force indices to be in the graph so that it gets a name during optimization
Expand Down

0 comments on commit bc26639

Please sign in to comment.