diff --git a/onnxruntime/server/environment.cc b/onnxruntime/server/environment.cc index 9775783738..78a8ac4022 100644 --- a/onnxruntime/server/environment.cc +++ b/onnxruntime/server/environment.cc @@ -60,7 +60,7 @@ ServerEnvironment::ServerEnvironment(OrtLoggingLevel severity, spdlog::sinks_ini spdlog::initialize_logger(default_logger_); } -void ServerEnvironment::RegisterEexcutionProviders(){ +void ServerEnvironment::RegisterExecutionProviders(){ #ifdef USE_MKLDNN Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_Mkldnn(options_, 1)); #endif @@ -75,7 +75,7 @@ void ServerEnvironment::RegisterEexcutionProviders(){ } void ServerEnvironment::InitializeModel(const std::string& model_path, const std::string& model_name, const std::string& model_version) { - RegisterEexcutionProviders(); + RegisterExecutionProviders(); auto result = sessions_.emplace(std::piecewise_construct, std::forward_as_tuple(model_name, model_version), std::forward_as_tuple(runtime_environment_, model_path.c_str(), options_)); if (!result.second) { diff --git a/onnxruntime/server/environment.h b/onnxruntime/server/environment.h index cd4065e568..86af210290 100644 --- a/onnxruntime/server/environment.h +++ b/onnxruntime/server/environment.h @@ -28,7 +28,7 @@ class ServerEnvironment { std::shared_ptr GetLogger(const std::string& request_id) const; std::shared_ptr GetAppLogger() const; void UnloadModel(const std::string& model_name, const std::string& model_version); - void RegisterEexcutionProviders(); + void RegisterExecutionProviders(); private: const OrtLoggingLevel severity_;