Skip to content

transformers_multi_label_classification.ipynb issue  #29

@tang-john

Description

@tang-john

https://github.com/abhimishra91/transformers-tutorials/blob/master/transformers_multi_label_classification.ipynb

The BertClass forward function is causing the following error message:

TypeError: dropout(): argument 'input' (position 1) must be Tensor, not str

It looks like the notebook contains version 3 code. How to migrate it to version 4?

https://stackoverflow.com/questions/65082243/dropout-argument-input-position-1-must-be-tensor-not-str-when-using-bert

https://huggingface.co/docs/transformers/migration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions