mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-27 22:45:57 +00:00
fix model load test. fi from master changed the constructor (#2483)
This commit is contained in:
parent
8dfad9e3b7
commit
495f159a56
1 changed files with 6 additions and 5 deletions
|
|
@ -64,11 +64,12 @@ TEST(ONNXModelsTest, non_existing_model) {
|
|||
}
|
||||
|
||||
TEST(ONNXModelsTest, future_opset) {
|
||||
// NOTE: this requires the current directory to be where onnxruntime_ir_UT.exe is located
|
||||
std::shared_ptr<Model> model;
|
||||
common::Status st = Model::Load("./testdata/add_opset_314159.onnx", model);
|
||||
ASSERT_FALSE(st.IsOK());
|
||||
ASSERT_EQ(st.Code(), common::INVALID_GRAPH);
|
||||
// NOTE: this requires the current directory to be where onnxruntime_ir_UT.exe is located
|
||||
std::shared_ptr<Model> model;
|
||||
common::Status st = Model::Load(ORT_TSTR("./testdata/add_opset_314159.onnx"), model, nullptr,
|
||||
DefaultLoggingManager().DefaultLogger());
|
||||
ASSERT_FALSE(st.IsOK());
|
||||
ASSERT_EQ(st.Code(), common::INVALID_GRAPH);
|
||||
}
|
||||
|
||||
#ifdef ORT_RUN_EXTERNAL_ONNX_TESTS
|
||||
|
|
|
|||
Loading…
Reference in a new issue