Closed
[Bug-Report|缺陷反馈]: ops-math fill_v2 图样例 dims 常量张量数据大小错误 #4678
sunzhongwen1Add on  3 days agoClosed at  2 days ago
sunzhongwen1
sunzhongwen1Collaborators
3 days ago Create

一、问题描述

CANN 9.3.0 环境下执行 fill_v2 图模式样例失败,GE 在 Const 校验阶段报:

CheckTensorIsValid: Const Node:laceholder is invalid, data size:8 not equal to tensor size:16
Run graph failed, error code:1343225857

根因: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 增加校验后样例失败。

二、环境信息

  • 昇腾硬件型号:Ascend950PR
  • CANN 版本:9.3.0
  • 操作系统:Linux x86_64
  • Python:3.12

三、重现步骤

  1. source /data/s00949565/Ascend/cann/set_env.sh
  2. cd /data/s00949565/ops-math
  3. bash build.sh --run_example fill_v2 graph --example_name=fill_v2 --soc=ascend950

四、预期结果

样例编译并运行成功,输出 Precision is ok 和 run test_geir_fill_v2, execute samples success。

日志 / 截图

[ERROR] GE ... [graph_prepare.cc:2269] CheckTensorIsValid: ErrorNo: 4294967295(failed)Const Node:laceholder is invalid, data size:8 not equal to tensor size:16
[ERROR] GE ... [graph_prepare.cc:2227] CheckConstOp: ErrorNo: 1343225857(Parameter invalid!)Const Op Check failed
[ERROR] GE ... [ge_api.cc:590] RunGraph: ErrorNo: 4294967295(failed)Run graph failed, error code:1343225857, session_id:0, graph_id:0.

关联 PR:https://gitcode.com/cann/ops-math/merge_requests/7319

likedislike
sunzhongwen1sunzhongwen1Collaborators
3 days ago Added label: bug-report
陈思陈思Collaborators
3 days ago Assign sunzhongwen1 as responsible person
CANN-robotCANN-robotCollaborators
2 days ago Close issue
CANN-robotCANN-robotCollaborators
2 days ago changed custom state from 待办的 to 已完成
CANN-robotCANN-robotCollaborators
2 days ago Added label: resolved