I used the command — x=tf.placeholder(shape=(1000,1000),dtype=tf.float32) in google colab, but I am getting an error saying that — module ‘tensorflow’ has no attribute ‘placeholder’ . Please tell what should I do now
Doubt in tensorflow
hey @abhaygarg2001 ,
Currently the tensorflow version in google colab is 2.3.0 and in its new update it doesn’t support such direct command to use placeholder.
So you can do two things:
- Either downgrade your tensorflow version in google colab
- I guess , tf.compat.v1.placeholder will work insted. So just have try on it , and also search about it if it’s the one.
I hope this helps you.
Thank You