-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to solve AttributeError: module 'tensorflow.contrib.learn' has no attribute 'estimators' #69
Comments
i cannot find any useful solution _ORZ |
I did the following change, and some how it worked for me. change the following line from Also at the bottom, change the print command from Hope it helps. I am using Tensorflow Version 1.8, Python 3.6.5 |
having the similar issue in google colab? tf 2.0 feature_columns = tf.contrib.learn.infer_real_valued_columns_from_input_fn |
the reason is when in PREDICT mode, model_fn deal the param 'targets' as None.
|
File "udc_predict.py", line 54, in
estimator._targets_info = tf.contrib.learn.estimator.tensor_signature.TensorSignature(tf.constant(0, shape=[1,1]))
AttributeError: module 'tensorflow.contrib.learn' has no attribute 'estimator'
The text was updated successfully, but these errors were encountered: