File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ namespace onnxruntime {
2828Model::Model (const std::string& graph_name,
2929 bool is_onnx_domain_only,
3030 const ModelMetaData& model_metadata,
31- const IOnnxRuntimeOpSchemaRegistryList local_registries,
31+ const IOnnxRuntimeOpSchemaRegistryList& local_registries,
3232 const std::unordered_map<std::string, int >& domain_to_version,
3333 const std::vector<ONNX_NAMESPACE::FunctionProto>& model_functions) {
3434 model_proto_ = std::make_unique<ModelProto>();
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class Model {
2626 explicit Model (const std::string& graph_name,
2727 bool is_onnx_domain_only = false ,
2828 const ModelMetaData& model_metadata = ModelMetaData(),
29- const IOnnxRuntimeOpSchemaRegistryList local_registries = {} ,
29+ const IOnnxRuntimeOpSchemaRegistryList& local_registries = IOnnxRuntimeOpSchemaRegistryList() ,
3030 const std::unordered_map<std::string, int>& domain_to_version = {},
3131 const std::vector<ONNX_NAMESPACE::FunctionProto>& model_specific_functions = {});
3232
You can’t perform that action at this time.
0 commit comments