Closed
[Bug-Report|缺陷反馈]: ops-math fill_v2 图样例 dims 常量张量数据大小错误 #4678
sunzhongwen1Add on 3 days agoClosed at 2 days ago
3 days ago Added label: bug-report
3 days ago Assign sunzhongwen1 as responsible person
2 days ago Close issue
2 days ago changed custom state from 待办的 to 已完成
2 days ago Added label: resolved
一、问题描述
CANN 9.3.0 环境下执行 fill_v2 图模式样例失败,GE 在 Const 校验阶段报:
根因:
conversion/fill_v2/examples/test_geir_fill_v2.cpp中ADD_CONST_INPUT/GenDimsData把 shape{2}当作 dims 数据写入,导致 2 元素 INT64 张量只提供 8 字节,而 TensorDesc 期望 16 字节。9.2.0 的 GE 未做该 Const 大小校验,9.3.0 增加校验后样例失败。二、环境信息
三、重现步骤
source /data/s00949565/Ascend/cann/set_env.shcd /data/s00949565/ops-mathbash build.sh --run_example fill_v2 graph --example_name=fill_v2 --soc=ascend950四、预期结果
样例编译并运行成功,输出
Precision is ok和run test_geir_fill_v2, execute samples success。日志 / 截图
关联 PR:https://gitcode.com/cann/ops-math/merge_requests/7319