From 3830d1a28c9a874e77f66d623cadab69ceb37931 Mon Sep 17 00:00:00 2001 From: Aditya Goel Date: Wed, 24 Jul 2024 13:10:40 +0100 Subject: [PATCH] Disable unsafe unsigned casts --- ndonnx/_core/_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndonnx/_core/_impl.py b/ndonnx/_core/_impl.py index cc85adc..70ea098 100644 --- a/ndonnx/_core/_impl.py +++ b/ndonnx/_core/_impl.py @@ -1095,7 +1095,7 @@ def _via_i64_f64( arrays, int_dtype=dtypes.int64, float_dtype=dtypes.float64, - use_unsafe_uint_cast=True, # TODO this can cause overflow, we should set it to false and fix all uses + use_unsafe_uint_cast=False, # TODO this can cause overflow, we should set it to false and fix all uses cast_return=cast_return, )