# Ascend上构建MindSpore报has no member named 'update output desc dpse' ;did you mean 'update\_output\_desc\_dq'?

**1. 系统环境**

硬件环境\(Ascend/GPU/CPU\): Ascend

软件环境: MindSpore 版本: 2.1.1

执行模式（静态图/动态图）： 不限

Python 版本: 3.8

操作系统平台: linux

**2. 报错信息**

2.1 问题描述

Ascend上构建MindSpore报头文件缺失,报错如下：

2.2 报错信息

```
In file included from /home/dev/mindspore/mindspore/ccsrc/transform/graph_ir/op_declare/experiment_ops_declare.h:21:0,

from /home/dev/mindspo re/mindspore/ccsrc/transform/graph_ ir/op_declare/experiment_ops_declare.cc:17:/home/dev/mindspo re/mindspore/ccsrc/transform/graph_ir/op_declare/experiment_ops_decla re.cc: In lambda function:

/home/dev/mindspore/mindspore/ccsrc/transform/graph_ir/op_declare/op_declare_macro.h:191:18: error: 'using element_type = class ge: : op: : FlashAttentionScore (aka class ge::op::F  lashAttentionScore}' hasno member named 'set_attr_input_layout'; did you mean 'set_attr_scale_value'? (void)p->set_attr_##name(ConvertAny(value, _VA ARGS)):

/home/dev/mindspore/mindspore/ccsrc/transform/graph_ir/op_declare/experiment_ ops_declare.cc:33:20: note: in expansion of macro 'ATTR_DESC'   {"input_layout", ATTR_DESC( input_layout, AnyTraits<std: :string>())},

/home/dev/mindspore/mindspore/ccs rc/transform/graph_ir/op_declare/experiment_ops_declare.cc: In lambda function:     /home/dev/mindspore/mindspore/ccsrc/trans form/graph ir/op_declare/op_declare macro.h:196:32: error: 'using element_type = class ge: :op: :FlashAttentionScore {aka class ge::op::F    lashAttentionScore}' has no member named 'get_attr_input_layout'; did you mean 'get_attr_scale_value'?    auto real_value = p->get_att r_##name();

/home/dev/mindspore/mindspore/cc src/transform/graph_ ir/op declare/experiment ops declare .cc:33:20: note: in expansion of maCrO 'ATTR DESC'   {"input_layout", ATTR_DESC( input_layout, AnyTraits<std: :string>())},     chenqxia

/home/dev/mindspore/mindspore/ccs rc/transform/graph_ir/op_declare/experiment_ops_declare.cc: In lambda function:     /home/dev/mindspo re/mindspore/ccsrc/transform/graph_ir/op_declare/op_declare_macro.h:191:18: error: 'using element_type = class ge::op::FlashAttentionScoreGrad {aka class ge::0

p: : FlashAttentionScoreGrad}' hasno member named 'set_attr_input_layout'; did you mean 'set_att r_scale_value'? (void)p->set_attr_##name(ConvertAny(value,—VA_ARGS ):

/home/dev/mindspore/mindspore/cc src/transform/graph_ir/op_declare/experiment_ops_declare .cc:52:20: note: in expansion of TmacrO 'ATTR_DESC'

{"input_layout", ATTR_DESC( input_layout, AnyTraits<std: :string>())},

/home/dev/mindspore/mindspore/ccs rc/transform/graph_ir/op_declare/experiment_ops_declare.cc: In lambda function:     /home/dev/mindspore/mindspore/ccsrc/transform/graph_ir/op_declare/op_declare_macro.h:196:32: error: 'using element_type = class ge: : op: : FlashAttentionScoreGrad {aka class ge::0  p:: FlashAttentionScoreGrad}' has no member named 'get_att r_input_layout'; did you mean 'get_attr_scale_value'?  auto real_value = p->get att r_##name():

/home/dev/mindspore/mindspore/ccs rc/transform/graph_ir/op_declare/experiment_ops_declare.cc :52:20: note: in expansion of macro *ATTR_DESC'

{"input_layout", ATTR_DESC( input_layout, AnyTraits<std: :string())}, /home/dev/mindspore/mindspore/ccs rc/transform/graph_ir/op_declare/experiment_ops_declare.cc: In lambda function: /home/dev/mindspo re/mindspore/ccsrc/transform/graph ir/op_declare/op_declare_macro.h:223:18: error: 'using element_type = class ge::op::FlashAttentionScoreGrad {aka class ge::0

p::FlashAttentionScoreG rad}' has no member named 'update output desc dpse' i did you mean 'update_output_desc_dq'?

(void)p->update_output_desc_##name(desc); -henpxao
```

**3. 根因分析**

MindSpore和CANN包版本不匹配。

**4. 解决方案**

需要将对应CANN包的latest/opp/built-in/op\_proto/inc/experiment\_ops.h文件复制并覆盖mindspore目录下的graphengine/910/third\_party/fwkacllib/inc/ops/experiment\_ops.h，不需要清缓存，直接重新执行构建命令即可。

