Tensorflow - 带有im2txt的GeForce 970内存管理

问题描述 投票:-1回答:1

我只是想知道是否有办法避免im2txt使用GeForce 970 GTX的超低0.5GB。我们可以强制训练课程只使用常规的3,5GB吗?这是个好主意吗 ?

谢谢。

python ubuntu tensorflow deep-learning
1个回答
1
投票

您可以尝试使用以下命令限制内存总量。不确定分配哪个内存,如果你运气不好,它可能包括慢速0.5GB

gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=0.7)
sess = tf.Session(config=tf.ConfigProto(gpu_options=gpu_options))
© www.soinside.com 2019 - 2024. All rights reserved.