Skip to content

Commit 98f59eb

Browse files
authored
fix code block in readme
1 parent 6f0131a commit 98f59eb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,12 @@ We provide pre-trained models for the ResNet variants and AlexNet, using
213213
the PyTorch `model zoo <http://pytorch.org/docs/model_zoo.html>`__.
214214
These can be constructed by passing ``pretrained=True``:
215215

216-
``python import torchvision.models as models resnet18 = models.resnet18(pretrained=True) alexnet = models.alexnet(pretrained=True)``
216+
.. code:: python
217+
218+
import torchvision.models as models
219+
resnet18 = models.resnet18(pretrained=True)
220+
alexnet = models.alexnet(pretrained=True)
221+
217222
218223
Transforms
219224
==========

0 commit comments

Comments
 (0)