Closed xinedison closed 6 years ago
@nswamy please add 'Python', 'performance' on this topic
We did done some memory optimization recently. You might want to check it out: https://github.com/apache/incubator-mxnet/pull/10847
@xinedison - Memonger in Gluon, not yet as far as I know.
There is a new environment variable - MXNET_GPU_MEM_POOL_TYPE introduced for Memory pool strategy which significantly reduces memory usage in - #11041 You might want to check it out.
Created a feature tracking issue for evaluating using Memonger in Gluon - https://github.com/apache/incubator-mxnet/issues/12226
Resolving it here. Please reopen if closed in error.
Description
I want to reduce gpu memory costing when using gluon, I tryed MXNet memonger but it did not work for me, After that I setting os.environ['MXNET_BACKWARD_DO_MIRROR'] = '1', But it not work for me too.
Environment info (Required)
question definition
I am using python 2 and newest mxnet gluon 3D convolution to do video action recognition. I want gpu memory to be effiently used, 1) so I try [memonger] to optimize the sym the hybridblock generated, but with no effect after hard working. 2) Then I try to save memory by only setting the environment variable MXNET_BACKWARD_DO_MIRROR to be '1', the memory not reduced too. Can someone show me what I have missed for memory saving.
Steps to reproduce
here is my code of my network