models icon indicating copy to clipboard operation
models copied to clipboard

from tensorflow.compat.v1 import estimator as tf_estimator ImportError: cannot import name 'estimator' from 'tensorflow.compat.v1'

Open liuxiaobo129 opened this issue 1 year ago • 4 comments

from tensorflow.compat.v1 import estimator as tf_estimator ImportError: cannot import name 'estimator' from 'tensorflow.compat.v1'

liuxiaobo129 avatar Aug 21 '24 05:08 liuxiaobo129

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

LakshmiKalaKadali avatar Oct 11 '24 13:10 LakshmiKalaKadali

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.

github-actions[bot] avatar Oct 19 '24 01:10 github-actions[bot]

@LakshmiKalaKadali thank you very much,I will try again by your say

liuxiaobo129 avatar Oct 19 '24 02:10 liuxiaobo129

Hi @liuxiaobo129,

Glad the suggestion helped. Could you please feel free to close the issue. Thank You

LakshmiKalaKadali avatar Oct 28 '24 04:10 LakshmiKalaKadali

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Nov 05 '24 02:11 google-ml-butler[bot]