Tensorflow运行中遇到OOM when allocating tensor 在使用tensorflow训练程序的时候,遇到了如下错误: 原因是GPU OOM内存不够,因此可尝试改成批处理。即将训练的数据调小。 将batch_size调小。