關於TensorFlow2的tf.function()和AutoGraph的一些問題解決


在使用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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM