We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
使用google-perftools观察内存分配,发现泄露的地方是google protobuf,来源于ProgramDesc
同样的代码(https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/fluid/tests/book/test_word2vec.py) 用本地模式运行就没有泄露的问题,经过dist transpiler处理之后运行内存就会持续泄露。
trainer run的时候,设置 trainer.run(program_cache=True) 可以避免protobuf的内存泄露。本质原因依然在寻找中。
trainer.run(program_cache=True)