会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
lzq的小窝
博客园
首页
新随笔
联系
订阅
管理
2021年8月9日
AttributeError: module 'tensorflow' has no attribute'name_scope' 'placeholder'等问题的解决
摘要: 问题原因在于在tf2下调用了tf1的API,而tf2中是没有placeholder的。 解决方法: 使用: import tensorflow.compat.v1 as tftf.disable_v2_behavior() 替换: import tensorflow as tf
阅读全文
posted @ 2021-08-09 08:54 lzq的小窝
阅读(772)
评论(0)
推荐(0)
编辑
公告