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