Skip to content

Commit

Permalink
Remove unnecessary functions and print statements (#7495) (#8352)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Teo <[email protected]>
  • Loading branch information
simonteozw and Simon Teo authored Nov 4, 2024
1 parent 7dda437 commit 57cce80
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions experimental/torch_xla2/torch_xla2/ops/jaten.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,12 +624,6 @@ def _zeros(size: Sequence[int], dtype=None, **kwargs):
return jnp.zeros(size, dtype)


@op(torch.ops.aten.eye)
@op_base.convert_dtype()
def _eye(n: int, m: Optional[int] = None, *, dtype=None, **kwargs):
return jnp.eye(n, m, dtype=dtype)


@op(torch.ops.aten.full)
@op_base.convert_dtype()
def _full(size: Sequence[int], fill_value, *, dtype=None, **kwargs):
Expand Down Expand Up @@ -1892,7 +1886,6 @@ def _helper(curr_dim_idx, sofar):
_helper(curr_dim_idx + 1, sofar[:])
return
if curr_dim_idx >= len(dims):
print(sofar)
res.append(sofar)
return
for i in range(dims[curr_dim_idx]):
Expand Down

0 comments on commit 57cce80

Please sign in to comment.