'Bert' object has no attribute 'config'

Hello,

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


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?