浅谈Tensorflow由于版本问题出现的几种错误及解决方法
1、AttributeError: 'module' object has no attribute 'rnn_cell'
S:将tf.nn.rnn_cell替换为tf.contrib.rnn
2、TypeError: Expected int32, got list containing Tensors of type '_Message' instead.
S:由于tf.concat的问题,将tf.concat(1, [conv1, conv2]) 的格式替换为tf.concat( [conv1, conv2],1)
3、AttributeError: 'module' object has no attribute 'pack'
S:将pack替换为stack
4、ValueError: Only call `softmax_cross_entropy_with_logits` with named arguments (labels=..., logits=..., ...)
S:按照提示,需要将括号内的形参写出,即(logits=pre, lables=tru)而非(pre,tru)
5、ValueError: Variable Wemb/Adam/ does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=None in VarScope?
S:需要定义scope,虽然报错可能是在optimizer处提示,但需要在定义模型时增加scope,即
with tf.variable_scope(tf.get_variable_scope()) as scope: # model construction
以上这篇浅谈Tensorflow由于版本问题出现的几种错误及解决方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。
您可能感兴趣的文章:
- Tensorflow由于版本问题出现的几种错误及解决办法
- python由于版本问题而出现的几个常见Warning及解决方法
- JQuery 1.3.2以上版本中出现pareseerror错误的解决方法
- (转载)解决IIS7虚拟目录出现HTTP 错误 500.19(由于权限不足而无法读取配置文件)的问题
- hadoop 安装出现的几种异常的处理方法,hadoop无法启动,no namenode to stop问题的解决方法,no datanode
- 程序中和有js函数的网页交互,线程中调用 get_Script 就会错误的解决方法,由于COM的线程安全问题
- 安装apk时出现错误Failure [INSTALL_FAILED_DEXOPT]问题解决的方法
- VS中出现 inline”之后应输入“(”错误问题解决方法
- Word2007“由于文件许可权错误,Word无法完成保存操作”问题的解决方法
- mysql4.1以上版本连接时出现Client does not support authentication protocol #1251错误问题解决办法
- [备忘]IIS 7.5运行.aspx出现“由于 Web 服务器上的“ISAPI 和 CGI 限制”列表设置,无法提供您请求的页面。”错误解决方法
- 关于allegro16.6 orCAD capture CIS 创建网表出现错误的问题解决方法
- 开发新浪微博应用出现以下问题Fatal error:Call to undefined function curl_init() in错误的解决方法
- 解决IIS7虚拟目录出现HTTP 错误 500.19(由于权限不足而无法读取配置文件)的问题
- 在原有VS2005基础上安2008测试版本2以后出现:配置节错误:web.config/protocols 解决方法。
- JDBC连接SQLServer时出现错误Error establishing socket.的解决方法[端口问题引起]
- 使用VS2010或低版本连接 Team Foundation Serive出现tf31002错误的解决方法
- 远程桌面连接出现"由于网络错误,连接被中断,请重新连接到远程计算机"错误的解决方法
- maven打包时出现【java source 1.3中不支持泛型 请使用 -source 5 或更高版本以启用泛型】错误时的解决方法
- 从eclipse3.4中启动tomcat6.0.16出现有关“SetPropertiesRule”错误的问题解决方法[转载]