cinn子图单测中reshape不生效 #62976
Labels
PFCC
Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc
status/close
已关闭
type/bug-report
报bug
bug 描述
复现步骤
已有工作
排除
ReshapeOpInferSymbolicShape
内部逻辑错误的原因。ReshapeOpInferSymbolicShape
中shape_analysis->GetShapeOrDataForValue(op->operand_source(1))
存在问题。按逻辑应为[1, 1024, 2]
或[1, -1, 2]
,实际为[32, 32, 1]
。可能是上游某个环节不对。查看日志,可知,
op->operand_source(1)
依赖于full_int_array
但是,暂时无法定位到具体哪里出了问题。这条线暂时搁置。
其余子图的单测中,也存在
reshape
,如test_sub_graph_6.py
,但是该子图单测的reshape
生效了。对比出错子图单测
test_sub_graph_54.py
与test_sub_graph_6.py
日志,有一处疑点:test_sub_graph_6 可能未调用 ReshapeOpInferSymbolicShape (日志中未找到 ReshapeOpInferSymbolicShape 内部打印出来的信息)。推进到这里推进不下去了。
其他补充信息 Additional Supplementary Information
No response
The text was updated successfully, but these errors were encountered: