首页 > 其他 > 详细

tensorflow里的stop_if_no_decrease_hook坑

时间:2019-12-29 15:56:19      阅读:439      评论:0      收藏:0      [点我收藏+]
程序里有个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


tensorflow里的stop_if_no_decrease_hook坑

原文:https://www.cnblogs.com/duoba/p/12115127.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!