77145/attributeerror-module-tensorflow-attribute-placeholder
Hi Guys,
I am trying to use the Tensorflow module in my code. But it is showing me the below error.
AttributeError: module 'tensorflow' has no attribute 'placeholder'
How can I solve this error?
Hi@akhtar,
In Tensorflow 2.0, there is no placeholder. You need to update your TF1.x code to the TF2.0 code and then run it again. It will solve your error.
Hi@akhtar, Tensorflow 2.0 has eager_execution enabled by default and ...READ MORE
Hi@akhtar, There was an environment issue, tensorflow was ...READ MORE
Hi@akhtar, In Tensorflow 2.0, there is no attribute named ...READ MORE
Hi@akhtar, To avoid this error, make sure you ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
def dense_layers(sizes): return tfk.Sequential([tfkl.Dense(size, ...READ MORE
Hi@Usman, It seems you are using an older ...READ MORE
Hi@akhtar, There may be problem in the versions. ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.