[WIP][PHI] Fix 0 size Tensor initilalized judgement
PR Category
Execute Infrastructure
PR Types
Bug fixes
Description
0 size Tensor 初始化判断不应该包含 Allocation 的判断,只需要 holder 存在即可,0 size 即便没有 Allocation 也应该算是初始化完成
目前因为 __deepcopy__ 实现里判断了 0 size Tensor initialized,而 0 size 永远为 False,导致了 holder 没有被 copy,进一步造成了后续动转静中设置动态图 OutMeta 时访问 place 挂掉
CI/CE 应该会暴露一些问题,会在暴露后确认方案是否合适,并进行修复
cc @HydrogenSulfate
PCard-66972
你的PR提交成功,感谢你对开源项目的贡献! 请关注后续CI自动化测试结果,详情请参考Paddle-CI手册。 Your PR has been submitted. Thanks for your contribution! Please wait for the result of CI firstly. See Paddle CI Manual for details.
Sorry to inform you that 5593828's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.