Skip to content

This error comes with tensorflow 2.x #16

@AnushangaWimalasena

Description

@AnushangaWimalasena
AttributeError                            Traceback (most recent call last)
<ipython-input-21-73a1b345b022> in <module>()
----> 1 ig = integrated_gradients(model)

/content/IntegratedGradients/IntegratedGradients.py in __init__(self, model, outchannels, verbose)
     33         #load model supports keras.Model and keras.Sequential
     34         if isinstance(model, Sequential):
---> 35             self.model = model.model
     36         elif isinstance(model, Model):
     37             self.model = model

AttributeError: 'Sequential' object has no attribute 'model'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions