cdpierse / transformers-interpret

Model explainability that works seamlessly with 🤗 transformers. Explain your transformers model in just 2 lines of code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'Bert' object has no attribute 'config'

Hossein-1991 opened this issue · comments

Hello,

I've written a Bert model with a fc layer for a classification task.
This is my codes:
bert

But when I want to use my model to SequenceClassificationExplainer it gives this error:
AttributeError: 'Bert' object has no attribute 'config'.
How should I fix that?