会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
裴枫丶
博客园
首页
新随笔
联系
订阅
管理
03 2021 档案
AttributeError: module 'tensorflow._api.v2.image' has no attribute 'resize_images'
摘要:报错信息AttributeError: module 'tensorflow._api.v2.image' has no attribute 'resize_images' 分析还是老问题,TensorFlow版本问题 解决方法将resize_images换成resize —————————————
阅读全文
posted @
2021-03-16 10:56
裴枫丶
阅读(1061)
评论(0)
推荐(0)
ResourceExhaustedError: OOResourceExhaustedError: OOM when allocating tensor with shapeM when allocating tensor with shape
摘要:原因:是因为gpu显存太小而导致的错误。 解决方法: 1.将batch_size改小 2.不用gpu训练,改用cpu训练 import os os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
阅读全文
posted @
2021-03-15 09:09
裴枫丶
阅读(214)
评论(0)
推荐(0)
公告