Skip to content

【论文复现】动态图自定义Python算子疑似显存泄露 #34752

@txyugood

Description

@txyugood

   1)PaddlePaddle版本:2.1.0
   2)CPU:AI Studio环境
   3)GPU:AI Studio环境
   4)系统环境:AI Studio环境
在网络中如果使用了自定义的Python算子,在forward中会使用save_for_backward保存Tensor供backward使用。先发现
如果只是推理预测,没有调用backward获取save_for_backward保存的Tensor。显存会不断的增加,直到程序崩溃。

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions