compatibility problem with tensorflow 2
See original GitHub issueHello! thank you for this amazing package you created. We are currently encountering some problems of compatibility with tensorflow 2. Once we install the package, we cannot even import the library because:
`
AttributeError Traceback (most recent call last) <ipython-input-1-ece3104b9f41> in <module> ----> 1 from deepexplain.tensorflow import DeepExplain
/home/eprifti/src/deepexplain/deepexplain/tensorflow/init.py in <module> ----> 1 from .methods import DeepExplain
/home/eprifti/src/deepexplain/deepexplain/tensorflow/methods.py in <module> 552 553 –> 554 class DeepExplain(object): 555 556 def init(self, graph=None, session=tf.get_default_session()):
/home/eprifti/src/deepexplain/deepexplain/tensorflow/methods.py in DeepExplain() 554 class DeepExplain(object): 555 –> 556 def init(self, graph=None, session=tf.get_default_session()): 557 self.method = None 558 self.batch_size = None
AttributeError: module ‘tensorflow’ has no attribute ‘get_default_session’`
we tried to fix it without any success. Do you have any suggestion?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top GitHub Comments
你好,来信已收到~~
Sorry I had no time to look into this yet. TF2 brings major changes and since DeepExplain uses some low level features the porting might not be straight-forward. Does it work if you disable tf2 features?
Definitely, DeepExplain does not support Eager Execution which can be disabled with
You can also try disabling v2 features entirely: