GE #5200将ordinary AICPU常量折叠迁移到opbase后,TransData常量折叠使用实际常量Tensor shape构造NodeDef,与迁移前使用节点OpDesc input shape的行为不一致。黄区出现NHWC [4,4,3,3]转换FRACTAL_Z时输出声明[16,1,16,16]、AICPU期望[12,1,16,16]的ERROR日志,随后fallback到GE built-in成功。
包含GE #5200、opbase #751及对应ops HostCPU常量折叠SO的黄区组合环境。
运行GE #4930分支中的examples/transdata_shape_mismatch_standalone.cpp,开启常量折叠并检查GE/AICPU日志。
examples/transdata_shape_mismatch_standalone.cpp
在完成迁移前后行为等价修复之前,回退GE #5200,恢复GE旧ordinary AICPU常量折叠实现,避免错误日志和行为变化进入后续master车。
Failed to trans format from NHWC to FRACTAL_Z, the dst shape [16,1,16,16] is invalid, expect [12,1,16,16]。
Failed to trans format from NHWC to FRACTAL_Z, the dst shape [16,1,16,16] is invalid, expect [12,1,16,16]
等价修复要求NodeDef shape/format/dtype来自节点OpDesc,data地址和size来自实际常量Tensor;不能用提前fallback替代迁移前AICPU成功折叠行为。
/assign
问题描述
GE #5200将ordinary AICPU常量折叠迁移到opbase后,TransData常量折叠使用实际常量Tensor shape构造NodeDef,与迁移前使用节点OpDesc input shape的行为不一致。黄区出现NHWC [4,4,3,3]转换FRACTAL_Z时输出声明[16,1,16,16]、AICPU期望[12,1,16,16]的ERROR日志,随后fallback到GE built-in成功。
环境信息
包含GE #5200、opbase #751及对应ops HostCPU常量折叠SO的黄区组合环境。
重现步骤
运行GE #4930分支中的
examples/transdata_shape_mismatch_standalone.cpp,开启常量折叠并检查GE/AICPU日志。预期结果
在完成迁移前后行为等价修复之前,回退GE #5200,恢复GE旧ordinary AICPU常量折叠实现,避免错误日志和行为变化进入后续master车。
日志 / 截图
Failed to trans format from NHWC to FRACTAL_Z, the dst shape [16,1,16,16] is invalid, expect [12,1,16,16]。备注
等价修复要求NodeDef shape/format/dtype来自节点OpDesc,data地址和size来自实际常量Tensor;不能用提前fallback替代迁移前AICPU成功折叠行为。