我是靠谱客的博主 阔达黑裤,这篇文章主要介绍TensorFlow: Resource exhausted: OOM when allocating tensor with shape[59500, 28, 28, 1],现在分享给大家,希望可以做个参考。

背景: 基于GPU, 用TensorFlow评估模型性能, 直接输出了59500个样本


问题:

TensorFlow 提示:
Resource exhausted: OOM when allocating tensor with shape[10000,32,28,28]

原因

一次性输入过度数据, 显存无法容纳

解决

分批次输入数据, 统计正确分类的个数

最后

以上就是阔达黑裤最近收集整理的关于TensorFlow: Resource exhausted: OOM when allocating tensor with shape[59500, 28, 28, 1]的全部内容,更多相关TensorFlow:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(61)

评论列表共有 0 条评论

立即
投稿
返回
顶部