Skip to content

Commit 1ed7225

Browse files
authored
A tiny change to onnxruntime::Model (#158)
* Remove unnecessary const * update
1 parent 9baaf5e commit 1ed7225

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

onnxruntime/core/graph/model.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace onnxruntime {
2828
Model::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>();

onnxruntime/core/graph/model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)