cdpierse / cdpierse/transformers-interpret

'Bert' object has no attribute 'config'

Open
#122 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
1.4k
Forks
99
PR merge metrics
No merged PRs in 30d

Description

Hello,

I've written a Bert model with a fc layer for a classification task.
This is my codes:
![bert](https://user-images.githubusercontent.com/79316338/209481007-d8fc5f24-2e61-45a9-85ba-75a1d980bffc.png)

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.