How to prevent tensorflow from allocating the totality of a GPU memory?

前端 未结 16 2446
南旧
南旧 2020-11-22 04:26

I work in an environment in which computational resources are shared, i.e., we have a few server machines equipped with a few Nvidia Titan X GPUs each.

For small to m

16条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-22 05:09

    i tried to train unet on voc data set but because of huge image size, memory finishes. i tried all the above tips, even tried with batch size==1, yet to no improvement. sometimes TensorFlow version also causes the memory issues. try by using

    pip install tensorflow-gpu==1.8.0

提交回复
热议问题