Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

AttributeError: module 'tensorflow' has no attribute 'Session' #57

Open
Nish0106 opened this issue Aug 27, 2020 · 1 comment
Open

AttributeError: module 'tensorflow' has no attribute 'Session' #57

Nish0106 opened this issue Aug 27, 2020 · 1 comment

Comments

@Nish0106
Copy link

HI,
I am trying to train a NLP dataset using tensorflow But I am facing the below error

File "train.py", line 52, in
with tf.Session() as sess:
AttributeError: module 'tensorflow' has no attribute 'Session'

I am using tensorflow - 2.3.0, Python - 3.6.8

Please help!

@alex-stout
Copy link
Contributor

Hi @Nish0106!

It looks like your question is related to Tensorflow not coinmarketcap itself.

Tensorflow 2.0 changed a lot in terms of usage compared to TF 1. Session is a v1 object. Here's a link to a Stack Overflow that might help you more: https://stackoverflow.com/questions/55142951/tensorflow-2-0-attributeerror-module-tensorflow-has-no-attribute-session

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants