Skip to content

dataset.release_memory 调用后没有释放内存 #72527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
phxtu opened this issue Apr 28, 2025 · 4 comments
Open

dataset.release_memory 调用后没有释放内存 #72527

phxtu opened this issue Apr 28, 2025 · 4 comments
Assignees
Labels

Comments

@phxtu
Copy link

phxtu commented Apr 28, 2025

bug描述 Describe the Bug

dataset.release_memory 调用后没有释放内存

code

import paddle.fluid as fluid

dataset = fluid.DatasetFactory().create_dataset('InMemoryDataset')
dataset.load_into_memory() # load 数据
dataset.release_memory() # 占用的内存没有释放

环境

paddlepaddle-GPU 2.3
cuda 12.8
python3.7
gcc10

其他补充信息 Additional Supplementary Information

No response

@Wennie396
Copy link
Contributor

可以补充完整相关信息截图吗,是内存还是显存吗

@phxtu
Copy link
Author

phxtu commented Apr 29, 2025

内存没有释放 @Wennie396

Image

@phxtu phxtu closed this as completed Apr 29, 2025
@paddle-bot paddle-bot bot added status/close 已关闭 and removed status/new-issue 新建 labels Apr 29, 2025
@phxtu
Copy link
Author

phxtu commented Apr 29, 2025

不小心点close issue了,麻烦 reopen下哈 @Wennie396

@Wennie396 Wennie396 reopened this Apr 29, 2025
@paddle-bot paddle-bot bot added status/reopen 重新打开 and removed status/close 已关闭 labels Apr 29, 2025
@Wennie396
Copy link
Contributor

还有2个问题,1是你说的等待ins指的是什么,你是等待ins之前已经确定执行了dataset.release_memory()是吗;2是上面提供的是可以复现这个问题的demo吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants