OOM ResourceExhaustedError in Python when allocating tensor

使用keras库进行模型训练时,出现以下错误:

出现这种错误的原因时超出内存了,适当减小batch_size的大小即可解决。

下面是stackoverflow对这个问题的描述与解决:

https://stackoverflow.com/questions/41241571/resourceexhaustederror-in-python-when-allocating-tensor

猜你喜欢

转载自blog.csdn.net/jingbo18/article/details/80284815
今日推荐