Skip to content

Commit

Permalink
code fragment & english syntax and meaning (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
CakeCrusher authored May 25, 2022
1 parent b16fdff commit db51446
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chapters/en/chapter8/4.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ So in our case, we can check the parameters accepted on [this page](https://hugg
We have checked that the input IDs are correct by decoding them. Next is the `attention_mask`:

```py
tokenizer.decode(trainer.train_dataset[0]["attention_mask"])
trainer.train_dataset[0]["attention_mask"]
```

```python out
Expand Down
2 changes: 1 addition & 1 deletion chapters/en/chapter8/7.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Which of the following might be a good choice for the title of a forum topic to
},
{
text: "It allows the maintainers to know whether you're running code on a GPU or CPU.",
explain: "Correct! As we've seen in this chapter, errors on GPUs and CPUs can quite different in flavor, and knowing which hardware you're using can help focus the maintainers' attention. But this isn't the only benefit...",
explain: "Correct! As we've seen in this chapter, code ran on GPUs or CPUs may produce diffferent results or errors, and knowing which hardware you're using can help focus the maintainers' attention. But this isn't the only benefit...",
correct: true
}
]}
Expand Down
1 change: 0 additions & 1 deletion utils/generate_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def read_and_split_frameworks(fname):
else:
return "".join(content)


def extract_cells(content):
"""
Extract the code/output cells from content.
Expand Down

0 comments on commit db51446

Please sign in to comment.