From 10f6625419d5b0624a9183bbe4ebce4b1c6d8575 Mon Sep 17 00:00:00 2001 From: zhy_brian Date: Tue, 4 Nov 2025 09:53:30 +0800 Subject: [PATCH] atc adds input_hint_shape parameter to adapt to dynamic shape scenes --- inc/external/ge_common/ge_api_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/external/ge_common/ge_api_types.h b/inc/external/ge_common/ge_api_types.h index 7c942c3ef6..a1bd594715 100644 --- a/inc/external/ge_common/ge_api_types.h +++ b/inc/external/ge_common/ge_api_types.h @@ -362,7 +362,7 @@ const std::string FUSION_TENSOR_SIZE = "ge.fusionTensorSize"; const std::string INPUT_SHAPE = "ge.inputShape"; -const std::string INPUT_HINT_SHAPE = "ge.inputHintShape"; +const char_t *const INPUT_HINT_SHAPE = "ge.inputHintShape"; const std::string OUTPUT_MAX_SIZE = "ge.outputMaxSize"; @@ -666,7 +666,7 @@ static const char_t *const OO_CONSTANT_FOLDING = ge::OO_CONSTANT_FOLDING; static const char_t *const OO_DEAD_CODE_ELIMINATION = ge::OO_DEAD_CODE_ELIMINATION; static const char_t *const OPTION_EXPORT_COMPILE_STAT = ge::OPTION_EXPORT_COMPILE_STAT; static const char_t *const OPTIMIZATION_SWITCH = ge::OPTIMIZATION_SWITCH; -static const char_t *const INPUT_HINT_SHAPE = ge::INPUT_HINT_SHAPE.c_str(); +static const char_t *const INPUT_HINT_SHAPE = ge::INPUT_HINT_SHAPE; // for interface: aclgrphBuildModel #ifdef __GNUC__ const std::set ir_builder_suppported_options = {INPUT_FORMAT, -- Gitee