File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,10 +109,12 @@ one channel instead of three and 28x28 instead of 32x32:
109109 return x
110110
111111
112- net = Net()
112+ net = Net()
113113
114114 We'll define the same ``optimizer `` and ``criterion `` from before:
115115
116+ .. code :: python
117+
116118 criterion = nn.CrossEntropyLoss()
117119 optimizer = optim.SGD(net.parameters(), lr = 0.001 , momentum = 0.9 )
118120
@@ -136,7 +138,7 @@ folder.
136138~~~~~~~~~~~~~~~~~~~~~~~~~
137139
138140Now let's write an image to our TensorBoard - specifically, a grid -
139- using `make_grid <https://pytorch.org/docs/stable/torchvision/utils.html#torchvision.utils.make_grid >`__
141+ using `make_grid <https://pytorch.org/docs/stable/torchvision/utils.html#torchvision.utils.make_grid >`__.
140142
141143.. code :: python
142144
@@ -157,9 +159,9 @@ Now running
157159
158160::
159161
160- ` tensorboard --logdir=runs`
162+ tensorboard --logdir=runs
161163
162- from the command line and then navigating to `https://localhost:6006 `
164+ from the command line and then navigating to `https://localhost:6006 < https://localhost:6006 >`_
163165should show the following.
164166
165167.. image :: ../../_static/img/tensorboard_first_view.png
You can’t perform that action at this time.
0 commit comments