PyTorchStepByStep icon indicating copy to clipboard operation
PyTorchStepByStep copied to clipboard

Chapter 11, p 910: missing assignment in code

Open benjwolff opened this issue 9 months ago • 0 comments

On page 910 in the code example you see the following code example

sentence1 = 'follow the white rabbit neo'
sentence2 = 'no one can be told what the matrix is'
tokenizer(sentence1, sentence2)

Later the variable joined_sentences is used, but the assignment is missing.

The correct version is in the corresponding jupyter notebook:

sentence1 = 'follow the white rabbit neo'
sentence2 = 'no one can be told what the matrix is'
joined_sentences = tokenizer(sentence1, sentence2)
joined_sentences

benjwolff avatar Sep 20 '23 09:09 benjwolff