Skip to content

Commit

Permalink
nit update
Browse files Browse the repository at this point in the history
  • Loading branch information
zpcore committed May 22, 2024
1 parent 7d0495e commit a10991a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions experimental/torch_xla2/test/test_core_aten_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ def run_export_and_compare(testcase,
with testcase.env:
res2 = func(*args2, **kwargs2)
res2 = pytree.tree_map_only(tensor.XLATensor2, lambda t: t.torch(), res2)
print(res)
print(res2)
# import pdb; pdb.set_trace()
with testcase.subTest("torch_xla2_diff:" + str(atol)):
if ignore_indices and isinstance(res, tuple) and len(res) == 2:
Expand Down
2 changes: 1 addition & 1 deletion experimental/torch_xla2/torch_xla2/ops/jaten.py
Original file line number Diff line number Diff line change
Expand Up @@ -1994,4 +1994,4 @@ def _aten_native_batch_norm(input, weight, bias, running_mean, running_var, trai
if training:
return torch.ops.aten._native_batch_norm_legit(input, weight, bias, running_mean, running_var, training, momentum, eps)
else:
return torch.ops.aten._native_batch_norm_legit_no_training(input, weight, bias, running_mean, running_var, momentum, eps)
return torch.ops.aten._native_batch_norm_legit_no_training(input, weight, bias, running_mean, running_var, momentum, eps)

0 comments on commit a10991a

Please sign in to comment.