@@ -31,8 +31,9 @@ constexpr const char* kTunableOpEnable = "tunable_op_enable";
31
31
constexpr const char * kTunableOpTuningEnable = " tunable_op_tuning_enable" ;
32
32
constexpr const char * kTunableOpMaxTuningDurationMs = " tunable_op_max_tuning_duration_ms" ;
33
33
constexpr const char * kEnableSkipLayerNormStrictMode = " enable_skip_layer_norm_strict_mode" ;
34
- constexpr const char * kPreferNCHWMode = " prefer_nhwc" ;
35
- constexpr const char * KUseEPLevelUnifiedStream = " use_ep_level_unified_stream" ;
34
+ constexpr const char * kPreferNHWCMode = " prefer_nhwc" ;
35
+ constexpr const char * kUseEPLevelUnifiedStream = " use_ep_level_unified_stream" ;
36
+
36
37
} // namespace provider_option_names
37
38
} // namespace cuda
38
39
@@ -112,8 +113,8 @@ CUDAExecutionProviderInfo CUDAExecutionProviderInfo::FromProviderOptions(const P
112
113
.AddAssignmentToReference (cuda::provider_option_names::kEnableCudaGraph , info.enable_cuda_graph )
113
114
.AddAssignmentToReference (cuda::provider_option_names::kCudnnConv1dPadToNc1d , info.cudnn_conv1d_pad_to_nc1d )
114
115
.AddAssignmentToReference (cuda::provider_option_names::kEnableSkipLayerNormStrictMode , info.enable_skip_layer_norm_strict_mode )
115
- .AddAssignmentToReference (cuda::provider_option_names::kPreferNCHWMode , info.prefer_nhwc )
116
- .AddAssignmentToReference (cuda::provider_option_names::KUseEPLevelUnifiedStream , info.use_ep_level_unified_stream )
116
+ .AddAssignmentToReference (cuda::provider_option_names::kPreferNHWCMode , info.prefer_nhwc )
117
+ .AddAssignmentToReference (cuda::provider_option_names::kUseEPLevelUnifiedStream , info.use_ep_level_unified_stream )
117
118
.AddValueParser (
118
119
cuda::provider_option_names::kTunableOpEnable ,
119
120
[&info](const std::string& value_str) -> Status {
@@ -164,8 +165,8 @@ ProviderOptions CUDAExecutionProviderInfo::ToProviderOptions(const CUDAExecution
164
165
{cuda::provider_option_names::kTunableOpTuningEnable , MakeStringWithClassicLocale (info.tunable_op .tuning_enable )},
165
166
{cuda::provider_option_names::kTunableOpMaxTuningDurationMs , MakeStringWithClassicLocale (info.tunable_op .max_tuning_duration_ms )},
166
167
{cuda::provider_option_names::kEnableSkipLayerNormStrictMode , MakeStringWithClassicLocale (info.enable_skip_layer_norm_strict_mode )},
167
- {cuda::provider_option_names::kPreferNCHWMode , MakeStringWithClassicLocale (info.prefer_nhwc )},
168
- {cuda::provider_option_names::KUseEPLevelUnifiedStream , MakeStringWithClassicLocale (info.use_ep_level_unified_stream )},
168
+ {cuda::provider_option_names::kPreferNHWCMode , MakeStringWithClassicLocale (info.prefer_nhwc )},
169
+ {cuda::provider_option_names::kUseEPLevelUnifiedStream , MakeStringWithClassicLocale (info.use_ep_level_unified_stream )},
169
170
};
170
171
171
172
return options;
@@ -185,8 +186,8 @@ ProviderOptions CUDAExecutionProviderInfo::ToProviderOptions(const OrtCUDAProvid
185
186
{cuda::provider_option_names::kTunableOpEnable , MakeStringWithClassicLocale (info.tunable_op_enable )},
186
187
{cuda::provider_option_names::kTunableOpTuningEnable , MakeStringWithClassicLocale (info.tunable_op_tuning_enable )},
187
188
{cuda::provider_option_names::kTunableOpMaxTuningDurationMs , MakeStringWithClassicLocale (info.tunable_op_max_tuning_duration_ms )},
188
- {cuda::provider_option_names::kPreferNCHWMode , MakeStringWithClassicLocale (info.prefer_nhwc )},
189
- {cuda::provider_option_names::KUseEPLevelUnifiedStream , MakeStringWithClassicLocale (info.use_ep_level_unified_stream )},
189
+ {cuda::provider_option_names::kPreferNHWCMode , MakeStringWithClassicLocale (info.prefer_nhwc )},
190
+ {cuda::provider_option_names::kUseEPLevelUnifiedStream , MakeStringWithClassicLocale (info.use_ep_level_unified_stream )},
190
191
};
191
192
192
193
return options;
0 commit comments