Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Error training ELMo - RuntimeError: The size of tensor a (5158) must match the size of tensor b (5000) at non-singleton dimension 1 #5601

Answered by epwalsh
gohjiayi asked this question in Q&A
Discussion options

You must be logged in to vote

Have you tried changing your tokenizer to truncate the input to 5000 tokens?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gohjiayi
Comment options

@epwalsh
Comment options

Answer selected by gohjiayi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants