cgt icon indicating copy to clipboard operation
cgt copied to clipboard

Memory consumption of native backend on Linux

Open sbos opened this issue 10 years ago • 0 comments

I observe a high rate of memory consumption when running my code on Linux using native backend. It's about 20 MB / sec and I quickly get out of memory. I don't see this on Mac OS or if I use python backed (and call gc.collect() from time to time).

It is interesting that running demo_neural_turing_machine.py consumes only a constant amount of memory while demo_char_rnn.py very quickly drains all available memory. I will test more examples soon.

Is there an analog of gc.collect() which I can use to free memory allocated by native backend?

sbos avatar Oct 21 '15 21:10 sbos