Skip to content

Commit

Permalink
Merge pull request #514 from nvoorhies/main
Browse files Browse the repository at this point in the history
Removing errant double quote.
  • Loading branch information
lunarflu authored Sep 5, 2024
2 parents ea35ade + 510cb73 commit a38ba80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/en/chapter2/5.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ InvalidArgumentError: Input to reshape is a tensor with 14 values, but the reque
```
{/if}

Oh no! Why did this fail? "We followed the steps from the pipeline in section 2.
Oh no! Why did this fail? We followed the steps from the pipeline in section 2.

The problem is that we sent a single sequence to the model, whereas 🤗 Transformers models expect multiple sentences by default. Here we tried to do everything the tokenizer did behind the scenes when we applied it to a `sequence`. But if you look closely, you'll see that the tokenizer didn't just convert the list of input IDs into a tensor, it added a dimension on top of it:

Expand Down

0 comments on commit a38ba80

Please sign in to comment.