From fff0b41fcb7cb85321f65d68c1dedaaf7032fcb0 Mon Sep 17 00:00:00 2001 From: gwang-msft <62914304+gwang-msft@users.noreply.github.com> Date: Tue, 18 Aug 2020 20:51:33 -0700 Subject: [PATCH] Nuget build break fix (#4854) * rename new header file to fix build break * update code to use the new header file name --- include/onnxruntime/core/session/onnxruntime_c_api.h | 4 ++-- ...onfig_keys.h => onnxruntime_session_options_config_keys.h} | 0 onnxruntime/core/framework/session_options.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename include/onnxruntime/core/session/{session_options_config_keys.h => onnxruntime_session_options_config_keys.h} (100%) diff --git a/include/onnxruntime/core/session/onnxruntime_c_api.h b/include/onnxruntime/core/session/onnxruntime_c_api.h index 5f6d452c00..5e3fa3c58c 100644 --- a/include/onnxruntime/core/session/onnxruntime_c_api.h +++ b/include/onnxruntime/core/session/onnxruntime_c_api.h @@ -5,7 +5,7 @@ #include #include #include -#include "session_options_config_keys.h" +#include "onnxruntime_session_options_config_keys.h" // This value is used in structures passed to ORT so that a newer version of ORT will still work with them #define ORT_API_VERSION 5 @@ -876,7 +876,7 @@ struct OrtApi { * If a configuration with same key exists, this will overwrite the configuration with the given config_value * \param config_key A null terminated string representation of the config key * \param config_value A null terminated string representation of the config value - * The config_key and the format of config_value are defined in session_options_config_keys.h + * The config_key and the format of config_value are defined in onnxruntime_session_options_config_keys.h */ ORT_API2_STATUS(AddSessionConfigEntry, _Inout_ OrtSessionOptions* options, _In_z_ const char* config_key, _In_z_ const char* config_value); diff --git a/include/onnxruntime/core/session/session_options_config_keys.h b/include/onnxruntime/core/session/onnxruntime_session_options_config_keys.h similarity index 100% rename from include/onnxruntime/core/session/session_options_config_keys.h rename to include/onnxruntime/core/session/onnxruntime_session_options_config_keys.h diff --git a/onnxruntime/core/framework/session_options.h b/onnxruntime/core/framework/session_options.h index 682228b61f..7e6e432dce 100644 --- a/onnxruntime/core/framework/session_options.h +++ b/onnxruntime/core/framework/session_options.h @@ -85,7 +85,7 @@ struct SessionOptions { // Stores the configurations for this session // To add an configuration to this session, call OrtApis::AddSessionConfigEntry // The configuration keys and value formats are defined in - // /include/onnxruntime/core/session/session_options_config_keys.h + // /include/onnxruntime/core/session/onnxruntime_session_options_config_keys.h std::unordered_map session_configurations; };