Skip to content
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

AttributeError on placeholder #399

Open
HJ-j11 opened this issue Mar 12, 2021 · 1 comment
Open

AttributeError on placeholder #399

HJ-j11 opened this issue Mar 12, 2021 · 1 comment

Comments

@HJ-j11
Copy link

HJ-j11 commented Mar 12, 2021

I ran the example 2_BasicModel linear_regression.py and the found error on jupyter notebook.
Error found at 21 lines, X = tf.placeholder("float").
Error

Is there any solution that I can run tensorflow without it?

@Anustup900
Copy link

Hey @HJ-j11 ,
its due to upgradation of Tensorflow from v-01 to v-02 ,
you can replace
import tensorflow as tf
by
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants