Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day!
9条答案
按热度按时间qhhrdooz1#
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~
Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day!
9ceoxa922#
如有必要,我可以提供aistudio项目链接
bejyjqdl3#
可以提供下复现代么?初步判断可能是需要加 no_grad
webghufk4#
加或者不加no_grad都会导致显存使用持续增长
col17t5w5#
主要是F.conv2d(),去掉则不会增长显存
pgvzfuti6#
且在本地或aistudio上都有这个问题,paddlepaddle版本是2.1.0
k2fxgqgv7#
去掉是怎么写呢?
chhkpiq48#
转成np格式通过cv2的卷积方法写的卷积过程,然后把结果再转换回tensor
ocebsuys9#
初步判断,是boundary_targets[boundary_targets > 0.1] = 1这样的写法引起的显存泄漏,已提PR修复,详见:#35013
临时解决方案,boundary_targets[boundary_targets > 0.1] = 1 改为 boundary_targets[boundary_targets.numpy() > 0.1] = 1