Solutions

AttributeError: module ‘tensorflow’ has no attribute ‘Session’

Sometimes working with TensorFlow, you might face AttributeError: module ‘tensorflow’ has no attribute ‘Session’ error. This error is mainly caused by the syntax incompatibility of the TensorFlow module 2.x version. The session is no longer explicitly useful in 2.x version of TensorFlow. Although, the session attribute was used in 1.x version, no longer available in …

AttributeError: module ‘tensorflow’ has no attribute ‘Session’ Read More »

Scroll to Top