Closed ooooo-create closed 8 hours ago
Execute Infrastructure
Others
https://github.com/PaddlePaddle/PaddleDetection/blob/0914611178e9db34e746a351c7fc090048eeebc0/ppdet/modeling/losses/ssd_loss.py#L115
pd_op.share_data_
z = paddle.squeeze(x,-1) y = x.detach() #不会立刻导致 z 的显存变化 # y.add_(xxx) ,就会导致 z 的显存变化
你的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.
PR Category
Execute Infrastructure
PR Types
Others
Description
https://github.com/PaddlePaddle/PaddleDetection/blob/0914611178e9db34e746a351c7fc090048eeebc0/ppdet/modeling/losses/ssd_loss.py#L115
pd_op.share_data_
不会和其他 inplace api 一样立刻修改显存