21 static const char*
const kOrtSessionOptionsConfigDisablePrepacking =
"session.disable_prepacking";
25 static const char*
const kOrtSessionOptionsConfigUseEnvAllocators =
"session.use_env_allocators";
29 static const char*
const kOrtSessionOptionsConfigLoadModelFormat =
"session.load_model_format";
33 static const char*
const kOrtSessionOptionsConfigSaveModelFormat =
"session.save_model_format";
42 static const char*
const kOrtSessionOptionsConfigSetDenormalAsZero =
"session.set_denormal_as_zero";
48 static const char*
const kOrtSessionOptionsDisableQuantQDQ =
"session.disable_quant_qdq";
54 static const char*
const kOrtSessionOptionsDisableDoubleQDQRemover =
"session.disable_double_qdq_remover";
64 static const char*
const kOrtSessionOptionsEnableQuantQDQCleanup =
"session.enable_quant_qdq_cleanup";
68 static const char*
const kOrtSessionOptionsEnableGeluApproximation =
"optimization.enable_gelu_approximation";
78 static const char*
const kOrtSessionOptionsDisableAheadOfTimeFunctionInlining =
"session.disable_aot_function_inlining";
80 #ifdef ENABLE_TRAINING
89 static const char*
const kOrtSessionOptionsMemoryOptimizerEnabler =
"optimization.memory_optimizer_config";
93 static const char*
const kOrtSessionOptionsMemoryOptimizerProbeConfig =
"optimization.enable_memory_probe_recompute_config";
98 static const char*
const kOrtSessionOptionsUseDeviceAllocatorForInitializers =
"session.use_device_allocator_for_initializers";
103 static const char*
const kOrtSessionOptionsConfigAllowInterOpSpinning =
"session.inter_op.allow_spinning";
104 static const char*
const kOrtSessionOptionsConfigAllowIntraOpSpinning =
"session.intra_op.allow_spinning";
112 static const char*
const kOrtSessionOptionsConfigUseORTModelBytesDirectly =
"session.use_ort_model_bytes_directly";
121 static const char*
const kOrtSessionOptionsConfigUseORTModelBytesForInitializers =
122 "session.use_ort_model_bytes_for_initializers";
127 static const char*
const kOrtSessionOptionsQDQIsInt8Allowed =
"session.qdqisint8allowed";
133 static const char*
const kOrtSessionOptionsAvx2PrecisionMode =
"session.x64quantprecision";
142 static const char*
const kOrtSessionOptionsConfigMinimalBuildOptimizations =
143 "optimization.minimal_build_optimizations";
153 static const char*
const kOrtSessionOptionsConfigNnapiEpPartitioningStopOps =
"ep.nnapi.partitioning_stop_ops";
163 static const char*
const kOrtSessionOptionsConfigDynamicBlockBase =
"session.dynamic_block_base";
170 static const char*
const kOrtSessionOptionsConfigForceSpinningStop =
"session.force_spinning_stop";
176 static const char*
const kOrtSessionOptionsConfigStrictShapeTypeInference =
"session.strict_shape_type_inference";
181 static const char*
const kOrtSessionOptionsConfigStrictAllowReleasedOpsetsOnly =
"session.allow_released_opsets_only";
184 static const char*
const kNodePartitionConfigFile =
"session.node_partition_config_file";
201 static const char*
const kOrtSessionOptionsConfigIntraOpThreadAffinities =
"session.intra_op_thread_affinities";
214 static const char*
const kDebugLayoutTransformation =
"session.debug_layout_transformation";
229 static const char*
const kOrtSessionOptionsDisableCPUEPFallback =
"session.disable_cpu_ep_fallback";
232 static const char*
const kOrtSessionOptionsOptimizedModelExternalInitializersFileName =
233 "session.optimized_model_external_initializers_file_name";
236 static const char*
const kOrtSessionOptionsOptimizedModelExternalInitializersMinSizeInBytes =
237 "session.optimized_model_external_initializers_min_size_in_bytes";
243 static const char*
const kOrtSessionOptionEpContextEnable =
"ep.context_enable";
247 static const char*
const kOrtSessionOptionEpContextFilePath =
"ep.context_file_path";
252 static const char*
const kOrtSessionOptionEpContextEmbedMode =
"ep.context_embed_mode";
258 static const char*
const kOrtSessionOptionsMlasGemmFastMathArm64Bfloat16 =
"mlas.enable_gemm_fastmath_arm64_bfloat16";