Skip to content

Commit 18d19ad

Browse files
committed
update
1 parent f00c7e5 commit 18d19ad

File tree

1 file changed

+1
-1
lines changed
  • onnxscript/function_libs/torch_aten/ops

1 file changed

+1
-1
lines changed

onnxscript/function_libs/torch_aten/ops/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5579,7 +5579,7 @@ def aten_trunc(self: TFloatOrBFloat16) -> TFloatOrBFloat16:
55795579

55805580
# Reference https://github.com/onnx/onnx/issues/4588#issuecomment-1463970126
55815581
integer_parts = op.Floor(op.Abs(self))
5582-
is_negative = self < 0
5582+
is_negative = op.Less(self, 0.0)
55835583
return op.Where(is_negative, op.Neg(integer_parts), integer_parts)
55845584

55855585

0 commit comments

Comments
 (0)