Skip to content

Commit aa95851

Browse files
author
Svetlana Karslioglu
authored
Apply suggestions from code review
1 parent 51ff05a commit aa95851

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

beginner_source/text_sentiment_ngrams_tutorial.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
- Shuffle and iterate the data with `torch.utils.data.DataLoader <https://pytorch.org/docs/stable/data.html?highlight=dataloader#torch.utils.data.DataLoader>`__
1010
1111
12-
Prerequisites:
13-
- | Recent 2.x version of portalocker package needs to be installed prior to running the tutorial.
14-
| E.g., in Colab environment this can be done by adding following line at the top of the script:
15-
| `!pip install -U portalocker>=2.0.0`
16-
| (More details https://github.com/pytorch/tutorials/issues/1993)
12+
Prerequisites
13+
~~~~~~~~~~~~~~~~
14+
- A recent 2.x version of the ``portalocker`` package needs to be installed prior to running the tutorial.
15+
For example, in the Colab environment, this can be done by adding the following line at the top of the script:
16+
.. code-block:: bash
17+
18+
!pip install -U portalocker>=2.0.0`
1719
1820
"""
1921

0 commit comments

Comments
 (0)