Skip to content

Commit

Permalink
Fix minor grammar error
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Teo committed Sep 19, 2024
1 parent 5267354 commit ce691b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experimental/torch_xla2/torch_xla2/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def dispatch(self, func, types, args, kwargs):
if func in (torch.Tensor.to, torch.ops.aten._to_copy, torch.ops.aten._to_copy.default):
return self._torch_Tensor_to(args, kwargs)

# If the func don't act on XLATensor2, and is not a tensor constructor,
# If the func doesn't act on XLATensor2, and is not a tensor constructor,
# We should skip and let torch handle it.
tensor_args = [t for t in args if isinstance(t, torch.Tensor)]
if tensor_args and all(not isinstance(t, XLATensor2) for t in tensor_args):
Expand Down

0 comments on commit ce691b8

Please sign in to comment.