From 4dc91fd90377099e02e88c073c85c16f1a8e5973 Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Sat, 7 Oct 2023 23:31:41 +0800 Subject: [PATCH] update --- onnxruntime/test/onnx/TestCase.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/onnxruntime/test/onnx/TestCase.cc b/onnxruntime/test/onnx/TestCase.cc index 5771152271a26..73f16d703b211 100644 --- a/onnxruntime/test/onnx/TestCase.cc +++ b/onnxruntime/test/onnx/TestCase.cc @@ -768,16 +768,16 @@ void LoadTests(const std::vector>& input_paths std::basic_string p = ConcatPathComponent(node_data_root_path, filename_str); - std::unique_ptr model_info; + std::unique_ptr model_info; if (is_onnx_format) { #if !defined(ORT_MINIMAL_BUILD) - model_info = TestModelInfo::LoadOnnxModel(p.c_str()); + model_info = std::make_unique(p.c_str()); #else ORT_THROW("onnx model is not supported in this build"); #endif } else if (is_ort_format) { - model_info = TestModelInfo::LoadOrtModel(p.c_str()); + model_info = std::make_unique(p.c_str()); } else { ORT_NOT_IMPLEMENTED(ToUTF8String(filename_str), " is not supported"); }