[Mlir-commits] [mlir] [mlir][tosa][tosa-to-linalg] tosa.cast: fix answer mismatch to cast f64/f32 max value to i64/i32 (PR #130116)
Eric Kunze
llvmlistbot at llvm.org
Fri Mar 7 17:51:17 PST 2025
eric-k256 wrote:
You're comparing against a single backend of TensorFlow and PyTorch in these cases, I don't see a guarantee that other backends would have the same behavior, which would make the change suggested here mismatch those implementations.
Relying on undefined behavior in your testing seems dangerous, and is what appears to be happening here. Is there a practical use for changing the TOSA behavior that would be helpful for real world use cases?
https://github.com/llvm/llvm-project/pull/130116
More information about the Mlir-commits
mailing list