tf2.0不降版本也能完美解决module ‘tensorflow’ has no attribute ‘contrib’的问题
tf2.0不降版本也能完美解决module ‘tensorflow’ has no attribute 'contrib’的问题
看图
tf2.0版本更改
我在学习的过程中,发现了大佬们写的项目都是在1.0版本的基础上搭建的,所以在学习他们的项目的时候遇到了非常棘手的contrib模块(2.0中被弃用),看到网上所有人的解决方法都是讲2.0版本降到1.0版本(个人不想降,所以就尝试找其他的代替),最后发现,只要将
cell = tf.contrib.rnn.BasicLSTMCel
用
cell = tf.compat.v1.nn.rnn_cell.BasicLSTMCell
代替就可以完美的解决出现的问题。得到的结果没啥区别。
我只是知识的搬运工,刚开始学习不久,大佬们勿喷!大家一起学习。
tf2.0不降版本也能完美解决module ‘tensorflow’ has no attribute ‘contrib’的问题相关推荐
- 解决Tensorflow2.0出现:AttributeError: module 'tensorflow' has no attribute 'get_default_graph'的问题
问题描述 在使用tensorflow2.0时,遇到了这个问题: AttributeError: module 'tensorflow' has no attribute 'get_default_gr ...
- tf2.0环境下“module ‘tensorflow‘ has no attribute ‘log‘”的解决办法
写在这里的初衷,一是备忘,二是希望得到高人指点,三是希望能遇到志同道合的朋友. 目录 一.问题 二.根本原因 三.解决办法 方法一 方法二 一.问题 目前,尝试着通过tensorflow对医学图像进行 ...
- tensorflow2.0及以上版本在使用Session模块时报错:AttributeError: module ‘tensorflow‘ has no attribute ‘Session‘ 已解决
tensorflow2.0版本及之后的版本在使用Session模块时报错:AttributeError: module 'tensorflow' has no attribute 'Session' ...
- tensorflow版本问题导致的错误AttributeError: module ‘tensorflow‘ has no attribute ‘***‘
问题解决--AttributeError: module 'tensorflow' has no attribute 'placeholder' - yuanyuanWu11 - 博客园 tensor ...
- module ‘tensorflow‘ has no attribute xxx tensorflow版本问题类导致API函数的报错
目录 1. module 'tensorflow' has no attribute 'Session' 2. The Session graph is empty. Add operations t ...
- python pip 多个版本冲突问题 完美解决
为何要在一个系统中装多个Python版本 Python的主版本有2和3两个,还有一些特殊的包要求特殊的版本号.软件开发和测试中,可能会遇到不同开发对Python版本和包的要求不同,还可能要测试编写代码 ...
- Ant Design Vue Pro(V3.0.0 )MultiTab标签缓存,完美解决
使用Ant Design Vue Pro 基础框架都知道好用,但是MultiTab标签一直未解决(V3.0.0),最新版解决了但是要收费9K(2022-01-21日). 首先需要实现如下: Multi ...
- AttributeError: module 'tensorflow' has no attribute 'placeholder'等一系列tensorflow版本导致的问题
新人tensorflow2.1版本导致程序我无法运行最简单的办法 法1 tensorflow.compat.v1 import tensorflow.compat..v1 as tf tf.disab ...
- 解决Tensorflow2.0出现:AttributeError: module ‘tensorflow‘ has no attribute ‘get_default_graph‘的问题
https://blog.csdn.net/public669/article/details/99686151
最新文章
- BCH大涨带领币市小幅走高 个别币种走势逐步分化
- mysql删除表命令_MySQL创建和删除表操作命令实例讲解
- Java Review - LinkedList源码解读
- python基础知心得总结_【python】基础学习心得总结(一)
- 详解DNS的常用记录(上):DNS系列之二
- React Fiber源码逐个击破系列-scheduler
- DHCP服务(dhcpd)
- 《机器学习实战》程序清单4-2 朴素贝叶斯分类器训练函数
- AT指令:AT+CPMS
- 在MT4上使用KDJ指标
- UE5 使用Spine插件
- Android DCIM相册保存
- python turtle库详解_Python绘图Turtle库详解
- WinHttp c++ 介绍及应用
- 湖南大学应用经济学考研考情与难度、参考书及上岸前辈备考经验
- 3904三极管是什么功能_想要单片机顺手,搞懂这些三极管知识!
- C语言 解决CCF 二十四点问题
- 如何在WPS 2019中将图片背景设置为透明
- Python 10个优雅的写法,你会吗?
- AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool@7b3106ec)
热门文章
- 新家急需入住怎么快速除甲醛,屋里去甲醛最快的方法
- 2. ansible常用模块
- window10快速关机小技巧(超级简单)
- (void (*Visit)(const ElemType ))
- 那年杏花微雨,你说你是DOM
- Chrome 的哪些功能改变了我们浏览网页的方式?
- ELK系列(四)、Logstash读取nginx日志写入ES中
- 独热码状态机、SR锁存器延迟模型、移位除法器模型
- JZOJ5498. 【清华集训2017模拟12.10】大佬的难题
- 每日启程——2019.12.15(纸上谈来终觉浅,绝知此事要躬行。)