HashingDeepLearning icon indicating copy to clipboard operation
HashingDeepLearning copied to clipboard

Run code TF-GPU erroring

Open Eslam2011 opened this issue 3 years ago • 0 comments

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?

Eslam2011 avatar Nov 26 '22 09:11 Eslam2011