diff --git a/onnxruntime/core/framework/allocation_planner.cc b/onnxruntime/core/framework/allocation_planner.cc index 1d1ed277b5..0f0d6a3611 100644 --- a/onnxruntime/core/framework/allocation_planner.cc +++ b/onnxruntime/core/framework/allocation_planner.cc @@ -4,6 +4,7 @@ #include "core/framework/allocation_planner.h" #include #include +#include #include #include #include @@ -1720,7 +1721,7 @@ class PlannerImpl { #ifndef ORT_ENABLE_STREAM void PartitionIntoStreams(const logging::Logger& /*logger*/, const ExecutionProviders& /*execution_providers*/, - const std::string& /*partition_config_file*/) { + const PathString& /*partition_config_file*/) { stream_nodes_.push_back({}); node_stream_map_.resize(SafeInt(graph_viewer_.MaxNodeIndex()) + 1); for (auto node_index : graph_viewer_.GetNodesInTopologicalOrder()) { diff --git a/onnxruntime/test/shared_lib/test_io_types.cc b/onnxruntime/test/shared_lib/test_io_types.cc index 2266f4572c..86d09e1340 100644 --- a/onnxruntime/test/shared_lib/test_io_types.cc +++ b/onnxruntime/test/shared_lib/test_io_types.cc @@ -31,6 +31,8 @@ static void TestModelInfo(const Ort::Session& session, bool is_input, const std: ASSERT_EQ(real_dims, dims); } +#if !defined(ORT_MINIMAL_BUILD) +// onnx format models are not supported in a minimal build TEST(CApiTest, input_output_type_info) { constexpr const ORTCHAR_T* model_uri = ORT_TSTR("../models/opset8/test_squeezenet/model.onnx"); Ort::SessionOptions session_options; @@ -38,3 +40,4 @@ TEST(CApiTest, input_output_type_info) { TestModelInfo(session, true, {1, 3, 224, 224}); TestModelInfo(session, false, {1, 1000, 1, 1}); } +#endif