A tiny change to onnxruntime::Model (#158)

* Remove unnecessary const

* update
This commit is contained in:
Changming Sun 2018-12-12 15:33:20 -08:00 committed by GitHub
parent 9baaf5e956
commit 1ed72251d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ namespace onnxruntime {
Model::Model(const std::string& graph_name,
bool is_onnx_domain_only,
const ModelMetaData& model_metadata,
const IOnnxRuntimeOpSchemaRegistryList local_registries,
const IOnnxRuntimeOpSchemaRegistryList& local_registries,
const std::unordered_map<std::string, int>& domain_to_version,
const std::vector<ONNX_NAMESPACE::FunctionProto>& model_functions) {
model_proto_ = std::make_unique<ModelProto>();

View file

@ -26,7 +26,7 @@ class Model {
explicit Model(const std::string& graph_name,
bool is_onnx_domain_only = false,
const ModelMetaData& model_metadata = ModelMetaData(),
const IOnnxRuntimeOpSchemaRegistryList local_registries = {},
const IOnnxRuntimeOpSchemaRegistryList& local_registries = IOnnxRuntimeOpSchemaRegistryList(),
const std::unordered_map<std::string, int>& domain_to_version = {},
const std::vector<ONNX_NAMESPACE::FunctionProto>& model_specific_functions = {});