tensorflow里的stop_if_no_decrease_hook坑


程序里有個bug,提示

early_stopping_hook = tf.contrib.estimator.stop_if_no_decrease_hook(
AttributeError: module 'tensorflow.contrib.estimator' has no attribute 'stop_if_no_decrease_hook'

查看了本機的 tf版本發現是1.14,程序源碼的版本是1.11   查找了tensorflow的文檔,才發現,stop_if_no_decrease_hook 這個函數換位置了,
不在這個tensorflow.contrib.estimator里面

在1.14版本中 應該是
tf.estimator.experimental.stop_if_no_decrease_hook


 
         
         
       


免責聲明!

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



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