Skip to content

Commit

Permalink
also add compat for floordiv
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerstenberger committed Nov 7, 2023
1 parent b959efb commit 69cb4f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions returnn/tensor/_dim_extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,8 @@ def _bin_op_tf(a, b):
elif kind == "mul":
return a * b
elif kind in ("floordiv", "truediv"): # truediv assumes there is no remainder
if util.is_onnx_export_global():
return tf_util.onnx_compat_floor_div(a, b)
return a // b
elif kind == "ceildiv":
if util.is_onnx_export_global():
Expand Down

0 comments on commit 69cb4f8

Please sign in to comment.