cdpierse / transformers-interpret

Model explainability that works seamlessly with 🤗 transformers. Explain your transformers model in just 2 lines of code.
Apache License 2.0
1.27k stars 96 forks source link

'Bert' object has no attribute 'config' #122

Open Hossein-1991 opened 1 year ago

Hossein-1991 commented 1 year ago

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?