Commits


Scott McKay authored and GitHub committed 9bd92069284
Attempt to fix flaky Windows GPU CI Pipeline 'cuda' stage. (#14281) ### Description <!-- Describe your changes. --> Change tolerance for tests involving MNIST and cuda to try and fix flaky CI tests. Errors from CI: ModelTests/ModelTest.Run/cuda__models_zoo_opset8_MNIST_model expected 4.0755 (40826a83), got 4.06948 (40823938), diff: 0.00601721, tol=0.0050755 idx=4. 2 of 10 differ ModelTests/ModelTest.Run/cuda__models_zoo_opset7_MNIST_model expected 7.89851 (40fcc09e), got 7.88879 (40fc70f8), diff: 0.00972271, tol=0.00889851 idx=4. 4 of 10 differ ModelTests/ModelTest.Run/cuda__models_zoo_opset12_MNIST12_mnist12 expected -5.50068 (c0b00595), got -5.49023 (c0afaff0), diff: 0.0104547, tol=0.00650068 idx=1. 1 of 10 differ Use rtol of 1e-2 if cuda is enabled. Use same for openvino for simplicity. ``` >>> expected = np.array([4.0755, 7.89851, -5.50068], dtype=np.float32) >>> actual = np.array([4.06948, 7.88879, -5.49023], dtype=np.float32) >>> np.isclose(expected, actual, rtol=1e-2, atol=1e-3) array([ True, True, True]) ``` Whitespace changes are from clang-format. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> CI fails semi-frequently causing unnecessary re-runs.