from tensorflow.compat.v1 import estimator as tf_estimator ImportError: cannot import name 'estimator' from 'tensorflow.compat.v1'
from tensorflow.compat.v1 import estimator as tf_estimator ImportError: cannot import name 'estimator' from 'tensorflow.compat.v1'
Hi @liuxiaobo129,
estimator API is deprecated and it is not available in TensorFlow 2.16 or after. Could you please use Keras API which will enable you to perform the similar tasks like estimator, such as model building, gradient application, training, evaluation, and prediction.
Refer Migration guide here for more details.
Thank You
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.
@LakshmiKalaKadali thank you very much,I will try again by your say
Hi @liuxiaobo129,
Glad the suggestion helped. Could you please feel free to close the issue. Thank You