diff --git a/ge/graph/passes/dynamic_single_op_reset_shape_pass.cc b/ge/graph/passes/dynamic_single_op_reset_shape_pass.cc index 519b0574..244ba625 100644 --- a/ge/graph/passes/dynamic_single_op_reset_shape_pass.cc +++ b/ge/graph/passes/dynamic_single_op_reset_shape_pass.cc @@ -105,7 +105,7 @@ Status DynamicSingleOpResetShapePass::CheckAllAicpuNodes(const ComputeGraphPtr & bool DynamicSingleOpResetShapePass::CheckIfConstInput(const GeTensorDescPtr &input_tensor_desc) { bool is_const = false; - (void)AttrUtils::GetBool(input_desc, CONST_ATTR_NAME_INPUT, is_const); + (void)AttrUtils::GetBool(input_tensor_desc, CONST_ATTR_NAME_INPUT, is_const); return is_const; }