Skip to content

Commit

Permalink
Change formatting of code blocks for correct rendering in Colab
Browse files Browse the repository at this point in the history
  • Loading branch information
kiersten-stokes committed Jun 1, 2023
1 parent d686b66 commit d38aa4c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions intermediate_source/tensorboard_profiler_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
-----
To install ``torch`` and ``torchvision`` use the following command:
::
.. code-block::
pip install torch torchvision
Expand Down Expand Up @@ -160,23 +160,23 @@ def train(data):
#
# Install PyTorch Profiler TensorBoard Plugin.
#
# ::
# .. code-block::
#
# pip install torch_tb_profiler
#

######################################################################
# Launch the TensorBoard.
#
# ::
# .. code-block::
#
# tensorboard --logdir=./log
#

######################################################################
# Open the TensorBoard profile URL in Google Chrome browser or Microsoft Edge browser.
#
# ::
# .. code-block::
#
# http://localhost:6006/#pytorch_profiler
#
Expand Down Expand Up @@ -287,7 +287,7 @@ def train(data):
# In this example, we follow the "Performance Recommendation" and set ``num_workers`` as below,
# pass a different name such as ``./log/resnet18_4workers`` to ``tensorboard_trace_handler``, and run it again.
#
# ::
# .. code-block::
#
# train_loader = torch.utils.data.DataLoader(train_set, batch_size=32, shuffle=True, num_workers=4)
#
Expand Down Expand Up @@ -316,7 +316,7 @@ def train(data):
#
# You can try it by using existing example on Azure
#
# ::
# .. code-block::
#
# pip install azure-storage-blob
# tensorboard --logdir=https://torchtbprofiler.blob.core.windows.net/torchtbprofiler/demo/memory_demo_1_10
Expand Down Expand Up @@ -366,7 +366,7 @@ def train(data):
#
# You can try it by using existing example on Azure:
#
# ::
# .. code-block::
#
# pip install azure-storage-blob
# tensorboard --logdir=https://torchtbprofiler.blob.core.windows.net/torchtbprofiler/demo/distributed_bert
Expand Down

0 comments on commit d38aa4c

Please sign in to comment.