PaddlePaddle / PaddleCustomDevice

PaddlePaddle custom device implementaion. (『飞桨』自定义硬件接入实现)
Apache License 2.0
70 stars 148 forks source link

[NPU] modify sub/add to resolve dout change question. #1263

Closed xuanyuanminzheng closed 5 months ago

xuanyuanminzheng commented 5 months ago

Due to the inplace nature of the framework, the input dout shares memory with the output dx, and the modification of dout affects the computation of dy in the binary operator.

paddle-bot[bot] commented 5 months ago

Thanks for your contribution!