Skip to content

Commit 40c8862

Browse files
Merge pull request #299 from microsoft/user/xianz/winmlrunnerFail
User/xianz/winmlrunner fail
2 parents 5f89576 + 6cf5137 commit 40c8862

File tree

3 files changed

+21
-43
lines changed

3 files changed

+21
-43
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Index,Value
2-
0,-2094.16
3-
1,-1531.67
4-
2,-306.442
5-
3,356.647
6-
4,-1730.17
7-
5,93.4113
8-
6,-1410.17
9-
7,-905.868
10-
8,6080.63
11-
9,-38.9785
2+
0,-2093.43
3+
1,-1530.56
4+
2,-305.326
5+
3,355.69
6+
4,-1732.48
7+
5,92.2873
8+
6,-1408.64
9+
7,-904.574
10+
8,6080.92
11+
9,-41.3783
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Index,Value
2-
0,-2094.16
3-
1,-1531.67
4-
2,-306.442
5-
3,356.646
6-
4,-1730.17
7-
5,93.4118
8-
6,-1410.17
9-
7,-905.868
10-
8,6080.63
11-
9,-38.9785
2+
0,-2093.43
3+
1,-1530.56
4+
2,-305.326
5+
3,355.69
6+
4,-1732.48
7+
5,92.2873
8+
6,-1408.64
9+
7,-904.574
10+
8,6080.92
11+
9,-41.3783

Testing/WinMLRunnerTest/WinMLRunnerTest.cpp

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -827,28 +827,6 @@ namespace WinMLRunnerTest
827827
Assert::AreEqual(true, CompareTensorsFP16(L"OutputTensorData\\Squeezenet_fp16_fish_input_CPU.csv",
828828
tensorDataPath + L"\\softmaxout_1CpuIteration1.csv"));
829829
}
830-
831-
TEST_METHOD_WITH_NAME(ProvidedCSVInputOnlyGpuSaveCpuBoundTensorImageDenotation)
832-
const std::wstring modelPath = CURRENT_PATH + L"mnist.onnx";
833-
const std::wstring inputPath = CURRENT_PATH + L"mnist_28.csv";
834-
const std::wstring tensorDataPath = TENSOR_DATA_PATH + L"\\" + METHOD_NAME;
835-
const std::wstring command = BuildCommand({ EXE_PATH, L"-model ", modelPath, L"-input", inputPath,
836-
L"-SaveTensorData", L"First", L"-PerIterationPath", tensorDataPath, L"-GPU" });
837-
Assert::AreEqual(S_OK, RunProc((wchar_t*)command.c_str()));
838-
Assert::AreEqual(true, CompareTensors(L"OutputTensorData\\Mnist_8_input_GPU.csv",
839-
tensorDataPath + L"\\Plus214_Output_0GpuIteration1.csv"));
840-
}
841-
842-
TEST_METHOD_WITH_NAME(ProvidedCSVInputOnlyCpuSaveCpuBoundTensorImageDenotation)
843-
const std::wstring modelPath = CURRENT_PATH + L"mnist.onnx";
844-
const std::wstring inputPath = CURRENT_PATH + L"mnist_28.csv";
845-
const std::wstring tensorDataPath = TENSOR_DATA_PATH + L"\\" + METHOD_NAME;
846-
const std::wstring command = BuildCommand({ EXE_PATH, L"-model ", modelPath, L"-input", inputPath,
847-
L"-SaveTensorData", L"First", L"-PerIterationPath", tensorDataPath, L"-CPU" });
848-
Assert::AreEqual(S_OK, RunProc((wchar_t*)command.c_str()));
849-
Assert::AreEqual(true, CompareTensors(L"OutputTensorData\\Mnist_8_input_CPU.csv",
850-
tensorDataPath + L"\\Plus214_Output_0CpuIteration1.csv"));
851-
}
852830
};
853831

854832
TEST_CLASS(ConcurrencyTest)
@@ -887,7 +865,7 @@ namespace WinMLRunnerTest
887865
TEST_METHOD(LoadModelFailModelNotFound)
888866
{
889867
const std::wstring command = BuildCommand({ EXE_PATH, L"-model", L"invalid_model_name" });
890-
Assert::AreEqual(HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), RunProc((wchar_t *)command.c_str()));
868+
Assert::AreEqual(HRESULT_FROM_WIN32(E_FAIL), RunProc((wchar_t *)command.c_str()));
891869
}
892870

893871
TEST_METHOD(TestPrintUsage)

0 commit comments

Comments
 (0)