transformers-interpret icon indicating copy to clipboard operation
transformers-interpret copied to clipboard

'Bert' object has no attribute 'config'

Open Hossein-1991 opened this issue 2 years ago • 0 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?

Hossein-1991 avatar Dec 25 '22 20:12 Hossein-1991