程序里有个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



 
                    
            
                

相关文章:

  • 2021-12-29
  • 2021-06-04
  • 2021-05-24
  • 2021-10-23
  • 2021-04-03
  • 2021-06-26
  • 2022-02-10
  • 2021-07-30
猜你喜欢
  • 2022-01-18
  • 2021-07-02
  • 2022-12-23
  • 2021-12-04
  • 2021-05-28
  • 2022-01-01
  • 2021-05-23
相关资源
相似解决方案