Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change formatting of code blocks in Tensorboard profiler tutorial #2398

Merged
merged 1 commit into from
Jun 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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