Missing attributes in tensorflow 2.x+

i am trying to use a few attributes of tf and getting an error that tf does not have the attribute

  • module ‘tensorflow’ has no attribute ‘placeholder’
  • module ‘tensorflow’ has no attribute ‘Session’
  • module ‘tensorflow’ has no attribute ‘get_variable’

Is there a replacement for these we could use?

Hi, @dbiber.

Let me know if this helps :slight_smile:

1 Like

Yes that helped very much. Exactly what I needed to resolve the issue I was seeing!

1 Like