onnxruntime: Test failure on Windows
Describe the bug
[ RUN ] TensorOpTest.CastFromString
D:\roaster-scratch\onnxruntime\onnxruntime\test\providers\provider_test_utils.cc(153): error: The difference between expected[i] and output[i] is nan, which exceeds threshold, where
expected[i] evaluates to -nan(ind),
output[i] evaluates to nan, and
threshold evaluates to 9.9999997473787516e-05.
i:6, provider_type: CPUExecutionProvider
D:\roaster-scratch\onnxruntime\onnxruntime\test\providers\provider_test_utils.cc(153): error: The difference between expected[i] and output[i] is nan, which exceeds threshold, where
expected[i] evaluates to -nan(ind),
output[i] evaluates to nan, and
threshold evaluates to 9.9999997473787516e-05.
i:7, provider_type: CPUExecutionProvider
[ FAILED ] TensorOpTest.CastFromString (134 ms)
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Win Server 2019
- ONNX Runtime installed from (source or binary): source
- ONNX Runtime version: 1.4.0
- Python version: 3.8.5
- Visual Studio version (if applicable): 2019
Screenshots
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 21 (21 by maintainers)
Works for me
I was able to repro.
You could try this change to workaround it: https://github.com/microsoft/onnxruntime/compare/skottmckay/WorkaroundLinkerBug
Or alternatively just using
/LTCGinstead of/LTCG:incrementalworks.Removing
/GLand/LTCG:incrementalworks. That usually indicates the existence of UB.