Error - tensorflow has no attribute`get_default_session()`
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
try this
import tensorflow.compat.v1 as tf tf.disable_v2_behavior()
i fixed it as below:
https://github.com/wisonwang/tensorrec/commit/590c7f63b42bdeb9c0b5be43759ee3a10844cdf1
refrence : migrate tf1->tf2
@https://github.com/wisonwang, Was this merged already? Does a package exist?
related to: https://github.com/jfkirk/tensorrec/issues/163