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

train_model, must be Tensor, not str #1

Open
DanielEdu opened this issue Apr 18, 2021 · 1 comment
Open

train_model, must be Tensor, not str #1

DanielEdu opened this issue Apr 18, 2021 · 1 comment

Comments

@DanielEdu
Copy link

Hola!

he probado el notebook pero me da error al momento de entrenar el modelo

TypeError: dropout(): argument 'input' (position 1) must be Tensor, not str
probablemente actualizaron parámetros en el transformador, pero no logro identificarlo

@jcsolares
Copy link

Hola, puedes corregirlo agregando el parametro return_dict=False a la clase asi:
cls_output = self.bert(
input_ids = input_ids,
attention_mask = attention_mask,
return_dict=False
)

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

2 participants