Skip to content

Commit

Permalink
fix: use the correct parameter name in torch.unique call
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishticode committed Dec 8, 2023
1 parent dec9ce6 commit f462710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy/functional/backends/torch/set.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def unique_inverse(
x = torch.flatten(x)
axis = 0

values, inverse_indices = torch.unique(x, return_inverse=True, axis=axis)
values, inverse_indices = torch.unique(x, return_inverse=True, dim=axis)
nan_idx = torch.isnan(x)
if nan_idx.any():
inverse_indices[nan_idx] = torch.where(torch.isnan(values))[0][0]
Expand Down

0 comments on commit f462710

Please sign in to comment.