We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d30b1f commit 6a084ddCopy full SHA for 6a084dd
onnxscript/function_libs/torch_lib/ops/core.py
@@ -8536,6 +8536,8 @@ def aten_trunc(self: TFloat) -> TFloat:
8536
@torch_op("math::trunc", trace_only=True)
8537
def python_math_trunc(self: TFloat) -> TInt:
8538
"""trunc(Tensor self) -> Tensor"""
8539
+ # NOTE: This is used in SymInt/SymBool/SymFloat context, so
8540
+ # we don't expect overflow to happen here.
8541
return op.Cast(self, to=INT64.dtype)
8542
8543
0 commit comments