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