diff --git a/winml/test/model/model_tests.cpp b/winml/test/model/model_tests.cpp index 33fe868f93d5..8a9e937f7d89 100644 --- a/winml/test/model/model_tests.cpp +++ b/winml/test/model/model_tests.cpp @@ -173,8 +173,6 @@ std::string GetTestDataPath() { static std::vector GetAllTestCases() { std::vector tests; std::vector> whitelistedTestCases; - double perSampleTolerance = 1e-3; - double relativePerSampleTolerance = 1e-3; std::unordered_set> allDisabledTests; std::vector> dataDirs; auto testDataPath = GetTestDataPath(); @@ -231,7 +229,7 @@ static std::vector GetAllTestCases() { #endif - WINML_EXPECT_NO_THROW(LoadTests(dataDirs, whitelistedTestCases, perSampleTolerance, relativePerSampleTolerance, + WINML_EXPECT_NO_THROW(LoadTests(dataDirs, whitelistedTestCases, TestTolerances(1e-3, 1e-3, {}, {}), allDisabledTests, [&tests](std::unique_ptr l) { tests.push_back(l.get());