Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

[Prim]Add pd_op.add Operation in ALLOW_DYNAMIC_SHAPE_VJP_OPS

Open WintersMontagne10335 opened this issue 1 year ago • 1 comments

PR Category

CINN

PR Types

Bug fixes

Description

PaddleTest 中 layercase/sublayer1000/Seg_cases/danet_danet_resnet50_os8_voc12aug_512x512_40k/SIR_34.py 报错,详细信息如下:

    NotImplementedError: (Unimplemented) pd_op.add_grad DOES NOT have InferSymbolicShapeInterface! (at /home/aistudio/Paddle/paddle/pir/src/dialect/shape/transforms/shape_optimization_pass.cc:333)

将 "pd_op.add" 添加至 ALLOW_DYNAMIC_SHAPE_VJP_OPS,解决了这个问题。 之后又报错,ReduceSum 符号推导失败。应当是符号推导中向 InferSymbolicShapeContext 迁移时,有部分逻辑没有迁移过去,小小地推进了一下。 后续接着报错,

    NotImplementedError: (Unimplemented) pd_op.conv2d_grad DOES NOT have InferSymbolicShapeInterface! (at /home/aistudio/Paddle/paddle/pir/src/dialect/shape/transforms/shape_optimization_pass.cc:333)

因为 conv2d 反向算子拆分暂未实现,只能先推进到这里了。

WintersMontagne10335 avatar May 15 '24 15:05 WintersMontagne10335

你的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.

paddle-bot[bot] avatar May 15 '24 15:05 paddle-bot[bot]

Sorry to inform you that c2de38f's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

paddle-ci-bot[bot] avatar May 29 '24 03:05 paddle-ci-bot[bot]

Sorry to inform you that db84cdf's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

paddle-ci-bot[bot] avatar Jul 01 '24 03:07 paddle-ci-bot[bot]

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Oct 14 '24 16:10 CLAassistant