ValueError: tf.function-decorated function tried to create variables on non-first call的解决方式
在进行训练过程前,加上以下代码即可:
tf.config.experimental_run_functions_eagerly(True)
原因可参考该博文内容,和以下链接:
https://blog.csdn.net/weixin_43824178/article/details/99297237
https://www.tensorflow.org/guide/effective_tf2#use_tfconfigexperimental_run_functions_eagerly_when_debugging
ValueError: tf.function-decorated function tried to create variables on non-first call的解决方式相关推荐
- Bug之ValueError: tf.function-decorated function tried to create variables on non-first call.
问题描述: tensorflow2.1 搭建模型时报以下错误 ValueError: tf.function-decorated function tried to create variables ...
- ValueError: tf.function-decorated function tried to create variables on non-first call
问题: tf 1x 的代码迁移到 tf 2x时出现错误: ValueError: tf.function-decorated function tried to create variables on ...
- ValueError: tf.function-decorated function tried to create variables on non-first call.
问题:ValueError: tf.function-decorated function tried to create variables on non-first call. 解决方案-当您尝试 ...
- ValueError: Creating variables on a non-first call to a function decorated with tf.function.解决方法
参考Creating variables on a non-first call to a function decorated with tf.function.解决方法!_时时勤拂拭.的博客-CS ...
- Creating variables on a non-first call to a function decorated with tf.function.解决方法!
Creating variables on a non-first call to a function decorated with tf.function.解决方法! Creating varia ...
- tf.function-decorated function tried to create variables on non-first call
tf2.0在模型的call()中调用tf.keras.layers.embedding,出错 tf.function-decorated function tried to create variab ...
- Error-tf.function-decorated function tried to create variables on non-first call
ValueError: tf.function-decorated function tried to create variables on non-first call 在tensorflow2中 ...
- function java_java.util.function之function
Function类包含四种方法,其中一个抽象方法apply(),两个default方法andThen()和compose(),以及一个静态方法identity(). 实例化Function的时候需要实 ...
- ( function(){…} )()和( function (){…} () )是两种立即执行函数
函数声明:function fnName () {-}; 函数表达式 var fnName = function () {-}; 匿名函数:function () {}; fnName(); func ...
- js立即执行函数: (function ( ){...})( ) 与 (function ( ){...}( ))
( function(){-} )() ( function (){-} () ) 是两种javascript立即执行函数的常见写法,最初我以为是一个括号包裹匿名函数,再在后面加个括号调用函数,最后达 ...
最新文章
- 近期活动盘点:工业大数据讲座、大数据自杀风险感知讲座、数据法学研讨会、海外学者短期讲学(12.3-12.13)
- 记一次 解决 vue 兼容ie11 的问题
- QT的QMessageBox类的使用
- 04_NoSQL数据库之Redis数据库:set类型和zset类型
- c语言程序设计字节,C语言程序设计-数据类型
- 6.过滤器(Filter)
- python语言网课答案_Python语言答案
- IdentityServer4之Client Credentials(客户端凭据许可)
- android 8字体下载,安卓手机字体
- 图解大数据技术:从入门到精通系列教程
- Java Excel 列号数字与字母互相转换
- Windows开启ftp服务-使用Xlight FTP Server
- [20190227]Windows系统评估工具winsat.txt
- java货郎担问题求解_货郎担问题的四种实现方法
- 人为什么要学数学 ——数学意义的哲学思考
- ldd 执行结果:不是动态可执行文件
- java组件及事件处理(11)--ActionListener一个窗口,两个事件
- linux的账号锁定
- No module named '_bz2'
- Minimum Number of Refueling Stops(C++最低加油次数)