Skip to content

AttributeError: module 'tensorflow' has no attribute 'placeholder'  #56

Description

@ardee123

I have python 3.7.1 and tensorflow 2.0.0
I tried running your code but i get this error AttributeError: module 'tensorflow' has no attribute 'placeholder'

I tried adding

import tensorflow.compat.v1 as tf
tf.disable_v2_behavior() 

But it doesnt work either.
Do you have any other suggestions? Or maybe on which versions of python and tensorflow this code works?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions