You need to sign in or sign up before continuing.
Commit 98f59ebc authored by Soumith Chintala's avatar Soumith Chintala Committed by GitHub
Browse files

fix code block in readme

parent 6f0131ae
...@@ -213,7 +213,12 @@ We provide pre-trained models for the ResNet variants and AlexNet, using ...@@ -213,7 +213,12 @@ We provide pre-trained models for the ResNet variants and AlexNet, using
the PyTorch `model zoo <http://pytorch.org/docs/model_zoo.html>`__. the PyTorch `model zoo <http://pytorch.org/docs/model_zoo.html>`__.
These can be constructed by passing ``pretrained=True``: These can be constructed by passing ``pretrained=True``:
``python import torchvision.models as models resnet18 = models.resnet18(pretrained=True) alexnet = models.alexnet(pretrained=True)`` .. code:: python
import torchvision.models as models
resnet18 = models.resnet18(pretrained=True)
alexnet = models.alexnet(pretrained=True)
Transforms Transforms
========== ==========
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment