码迷,mamicode.com
首页 > 其他好文 > 详细

关于TensorFlow2的tf.function()和AutoGraph的一些问题解决

时间:2019-10-26 19:09:19      阅读:236      评论:0      收藏:0      [点我收藏+]

标签:使用   记录   convert   not   关于   pip   问题解决   解决   简单   

在使用TensorFlow的AutoGraph的时候出现了一些问题,特此记录

AutoGraph did not convert this function. Try decorating it directly with @tf.function()
WARNING:  export AUTOGRAPH_VERBOSITY=10

是因为AutoGraph需要gast,而gast升级到了最新的0.3.2,所以解决方法也比较简单,把gast降下去

pip install gast==0.2.2

关于TensorFlow2的tf.function()和AutoGraph的一些问题解决

标签:使用   记录   convert   not   关于   pip   问题解决   解决   简单   

原文地址:https://www.cnblogs.com/flyuz/p/11744118.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!