@@ -20,6 +20,7 @@ constexpr const char* kDeviceId = "device_id";
2020constexpr const char * kMemLimit = " npu_mem_limit" ;
2121constexpr const char * kArenaExtendStrategy = " arena_extend_strategy" ;
2222constexpr const char * kEnableCannGraph = " enable_cann_graph" ;
23+ constexpr const char * kEnableCannSubGraph = " enable_cann_subgraph" ;
2324constexpr const char * kDumpGraphs = " dump_graphs" ;
2425constexpr const char * kDumpOmModel = " dump_om_model" ;
2526constexpr const char * kPrecisionMode = " precision_mode" ;
@@ -58,6 +59,7 @@ CANNExecutionProviderInfo CANNExecutionProviderInfo::FromProviderOptions(const P
5859 cann::provider_option_names::kArenaExtendStrategy ,
5960 arena_extend_strategy_mapping, info.arena_extend_strategy )
6061 .AddAssignmentToReference (cann::provider_option_names::kEnableCannGraph , info.enable_cann_graph )
62+ .AddAssignmentToReference (cann::provider_option_names::kEnableCannSubGraph , info.enable_cann_subgraph )
6163 .AddAssignmentToReference (cann::provider_option_names::kDumpGraphs , info.dump_graphs )
6264 .AddAssignmentToReference (cann::provider_option_names::kDumpOmModel , info.dump_om_model )
6365 .AddAssignmentToReference (cann::provider_option_names::kPrecisionMode , info.precision_mode )
@@ -74,6 +76,7 @@ ProviderOptions CANNExecutionProviderInfo::ToProviderOptions(const CANNExecution
7476 {cann::provider_option_names::kArenaExtendStrategy ,
7577 EnumToName (arena_extend_strategy_mapping, info.arena_extend_strategy )},
7678 {cann::provider_option_names::kEnableCannGraph , MakeStringWithClassicLocale (info.enable_cann_graph )},
79+ {cann::provider_option_names::kEnableCannSubGraph , MakeStringWithClassicLocale (info.enable_cann_subgraph )},
7780 {cann::provider_option_names::kDumpGraphs , MakeStringWithClassicLocale (info.dump_graphs )},
7881 {cann::provider_option_names::kDumpOmModel , MakeStringWithClassicLocale (info.dump_om_model )},
7982 {cann::provider_option_names::kPrecisionMode , MakeStringWithClassicLocale (info.precision_mode )},
@@ -89,6 +92,7 @@ ProviderOptions CANNExecutionProviderInfo::ToProviderOptions(const OrtCANNProvid
8992 {cann::provider_option_names::kArenaExtendStrategy ,
9093 EnumToName (arena_extend_strategy_mapping, ArenaExtendStrategy (info.arena_extend_strategy ))},
9194 {cann::provider_option_names::kEnableCannGraph , MakeStringWithClassicLocale (info.enable_cann_graph )},
95+ {cann::provider_option_names::kEnableCannSubGraph , MakeStringWithClassicLocale (info.enable_cann_subgraph )},
9296 {cann::provider_option_names::kDumpGraphs , MakeStringWithClassicLocale (info.dump_graphs )},
9397 {cann::provider_option_names::kDumpOmModel , MakeStringWithClassicLocale (info.dump_om_model )},
9498 {cann::provider_option_names::kPrecisionMode , MakeStringWithClassicLocale (info.precision_mode )},
0 commit comments