Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error - tensorflow has no attributeget_default_session() #162

Open
lxin618 opened this issue Sep 19, 2020 · 3 comments
Open

Error - tensorflow has no attributeget_default_session() #162

lxin618 opened this issue Sep 19, 2020 · 3 comments

Comments

@lxin618
Copy link

lxin618 commented Sep 19, 2020

Hi there, just installed the tensorrec package, tried to run the script, i got the error: if tf.get_default_session() is not None:
AttributeError: module 'tensorflow' has no attribute 'get_default_session' , in session_managment file, searched online, couldn't find anything, just posted here, wondering if i can please get some help.. python version: 3.7.8, tensorflow: 2.2.0, tensorrec: 0.26.2, Keras: 2.1.4 thank you so much

@abhiHunts
Copy link

try this

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

@wisonwang
Copy link

wisonwang commented Mar 17, 2021

@ChrisDelClea
Copy link

ChrisDelClea commented Jan 20, 2022

@https://github.com/wisonwang, Was this merged already? Does a package exist?

related to: #163

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

No branches or pull requests

4 participants