Skip to content

Commit

Permalink
unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
will-cromar committed Apr 3, 2024
1 parent 6d4e730 commit c06a0c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experimental/torch_xla2/torch_xla2/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ def __torch_function__(self, func, types, args=(), kwargs=None) -> torch.Tensor:
if kwargs:
warnings.warn(f'kwargs not implemented for {kwargs}')

return tensor.wrap(jax_func(*args))
return tensor.wrap(jax_func(*tensor.unwrap(args)))

0 comments on commit c06a0c8

Please sign in to comment.