Skip to content

Commit b133782

Browse files
authored
Update internal_testing_tests.cc
For for failing TestSaveAndLoadOrtModel test Make sure the model being saved / loaded is being done from a writeable location
1 parent 4df9cea commit b133782

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

onnxruntime/test/internal_testing_ep/internal_testing_tests.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ static void ExecuteMnist(InferenceSessionWrapper& session, bool custom_ep_enable
122122

123123
#if !defined(ORT_MINIMAL_BUILD)
124124
TEST(InternalTestingEP, TestSaveAndLoadOrtModel) {
125-
const auto ort_model_path = ResolveInternalTestPathString(ORT_MODEL_FOLDER "mnist.internal_testing_ep.test_output.ort");
125+
const auto ort_model_dir = ResolveInternalTestPath(std::filesystem::path{ORT_MODEL_FOLDER});
126+
const std::basic_string<ORTCHAR_T> ort_model_path =
127+
(ort_model_dir / ORT_TSTR("mnist.internal_testing_ep.test_output.ort")).native();
126128

127129
//
128130
// First load the onnx format model and save as an ORT model.

0 commit comments

Comments
 (0)