albermax / innvestigate

A toolbox to iNNvestigate neural networks' predictions!
Other
1.26k stars 233 forks source link

[BUG] 'tensorflow' has no attribute 'get_default_graph' #262

Closed dokato closed 3 years ago

dokato commented 3 years ago

Read the docs

Describe the bug

When calling analyze I get:

AttributeError:  module 'tensorflow' has no attribute 'get_default_graph'

Steps to reproduce the bug

Ideally include a minimal code example in Python that reproduces the bug:

analyzer = innvestigate.create_analyzer("deep_taylor", model)
a = analyzer.analyze(image)

Expected behavior

It returns analysis.

Platform information

adrhill commented 3 years ago

Hi dokato,

as you have noticed, iNNvestigate's releases currently only support TF1. We're working on TF2.0 support. In the meanwhile you can use the updates_towards_tf2.0 branch.