This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Out of memory when using Block.register_op_hook #20678
Unanswered
shuo-ouyang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, I am using
Block.register_op_hook
to capture hidden layers' output during inference. However, the GPU memory is gradually increasing and finally causes OOM when I collecting many layers. I found there is a raw pointer declared inmxnet::common::ExecuteMonOutputCallback
and does not delete it. I suspect the reason is this unreleased pointer, but the program core dumped after I release this pointer manually.https://github.com/apache/incubator-mxnet/blob/a6a7ab4e534022080e2ae90d11e96ca58d338dc7/src/common/utils.cc#L103
My questions:
Beta Was this translation helpful? Give feedback.
All reactions