tensorflow.contrib.estimator‘ has no attribute ‘stop"/>
AttributeError: module ‘tensorflow.contrib.estimator‘ has no attribute ‘stop
程序里有个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
更多推荐
AttributeError: module ‘tensorflow.contrib.estimator‘ has no attribute ‘stop
发布评论