We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I run python code using TF-GPU on this image tensorflow/tensorflow:latest-gpu, and they alot of errors in code such as:
x_idxs = tf.placeholder(tf.int64, shape=[None,2]) AttributeError: module 'tensorflow' has no attribute 'placeholder'
I solved it by using import tensorflow.compat.v1 as tf tf.disable_v2_behavior()
### But why this error, I think the code must run without any error?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I run python code using TF-GPU on this image tensorflow/tensorflow:latest-gpu, and they alot of errors in code such as:
x_idxs = tf.placeholder(tf.int64, shape=[None,2])
AttributeError: module 'tensorflow' has no attribute 'placeholder'
I solved it by using
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
### But why this error, I think the code must run without any error?
The text was updated successfully, but these errors were encountered: