Is there a way of determining how much GPU memory is in use by TensorFlow?

后端 未结 4 1645
醉梦人生
醉梦人生 2020-11-30 04:59

Tensorflow tends to preallocate the entire available memory on it\'s GPUs. For debugging, is there a way of telling how much of that memory is actually in use?

4条回答
  •  一生所求
    2020-11-30 05:41

    The TensorFlow profiler has improved memory timeline that is based on real gpu memory allocator information https://github.com/tensorflow/tensorflow/tree/master/tensorflow/core/profiler#visualize-time-and-memory

提交回复
热议问题