Skip to content

Commit

Permalink
remove unecessary wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
will-cromar committed Apr 5, 2024
1 parent b08a9ad commit 8ea3ec7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions experimental/torch_xla2/torch_xla2/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@
def register_function(torch_func: Callable[P, torch.Tensor]):

def decorator(jax_impl: Callable[P, jax.Array]):

@functools.wraps(torch_func)
def wrapper(*args: P.args, **kwargs: P.kwargs):
return jax_impl(*args, **kwargs)

registry[torch_func] = jax_impl

return wrapper
return jax_impl

return decorator

Expand Down

0 comments on commit 8ea3ec7

Please sign in to comment.