Skip to content

[Memory] Reuse tensor memory in concat operator #4246

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

Merged
merged 1 commit into from
Sep 8, 2020

Conversation

DannyIsFunny
Copy link
Collaborator

@DannyIsFunny DannyIsFunny commented Sep 3, 2020

【问题描述】
发现内存复用memory_optimize_pass实现中,剔除了concat及其周边tensor ,导致如果模型中有较多concat 算子时,运行时内存过大。
【本PR工作】
opt 优化模型时会将concat 算子内的tensor也进行内存复用
【效果】
image

@DannyIsFunny DannyIsFunny merged commit 944eb27 into PaddlePaddle:develop Sep 8, 2020
@DannyIsFunny DannyIsFunny deleted the FIX_MEMOPASS branch September 8, 2020 02:27
juncaipeng pushed a commit to juncaipeng/Paddle-Lite that referenced this pull request Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants