Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Hossein-1991 opened this issue Dec 25, 2022 · 0 comments
Open

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

Hossein-1991 opened this issue Dec 25, 2022 · 0 comments

Comments

@Hossein-1991
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant