Skip to content

Commit 1f6b4a4

Browse files
authored
Merge branch 'master' into packed_accessor
2 parents 8288193 + 333c494 commit 1f6b4a4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

intermediate_source/tensorboard_tutorial.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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

138140
Now 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>`_
163165
should show the following.
164166

165167
.. image:: ../../_static/img/tensorboard_first_view.png

0 commit comments

Comments
 (0)