Skip to content

[Inference] Add shrink_memory method.#28345

Closed
jiweibo wants to merge 2 commits intoPaddlePaddle:developfrom
jiweibo:shrink_memory
Closed

[Inference] Add shrink_memory method.#28345
jiweibo wants to merge 2 commits intoPaddlePaddle:developfrom
jiweibo:shrink_memory

Conversation

@jiweibo
Copy link
Contributor

@jiweibo jiweibo commented Nov 2, 2020

PR types

New features

PR changes

Others

Describe

The memory modification: add release interface #28355

Predictor add ShrinkMemory method.

predictor->ShrinkMemory() will release all tmp tensor to release Allocator Memory pool.

demo link. https://github.com/PaddlePaddle/Paddle-Inference-Demo/tree/master/c%2B%2B/test/shrink_memory

@paddle-bot-old
Copy link

paddle-bot-old bot commented Nov 2, 2020

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

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.

1 participant