Skip to content

Commit

Permalink
Update jaten.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfeiBai committed Jul 18, 2024
1 parent 472d194 commit f64633e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions experimental/torch_xla2/torch_xla2/ops/jaten.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ def _aten_div(x, y, rounding_mode=""):

if rounding_mode == "floor":
res = jnp.floor_divide(x, y)
if _is_int(x) and _is_int(y):
res_dtype = jnp.dtype('int64')
else:
res = x / y
if rounding_mode == "trunc":
Expand Down

0 comments on commit f64633e

Please sign in to comment.