Skip to content

Commit 8bcb307

Browse files
committed
fix
1 parent 4e4133d commit 8bcb307

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

recipes_source/recipes/profiler_recipe.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,28 @@
55
"""
66

77
######################################################################
8-
#
98
# This recipe explains how to use PyTorch profiler and measure the time and
109
# memory consumption of the model's operators.
11-
10+
#
1211
# Introduction
1312
# ------------
14-
# PyTorch includes a simple profiler API that is useful when user needs
13+
# PyTorch includes a simple profiler API that is useful when the user needs
1514
# to determine the most expensive operators in the model.
16-
15+
#
1716
# In this recipe, we will use a simple Resnet model to demonstrate how to
18-
# use profiler to analyze model performance.
19-
17+
# use the profiler to analyze model performance.
18+
#
2019
# Prerequisites
2120
# ---------------
2221
# - ``torch >= 2.3.0``
23-
22+
#
2423
# Setup
2524
# -----
2625
# To install ``torch`` and ``torchvision`` use the following command:
27-
26+
#
2827
# .. code-block:: sh
29-
28+
#
3029
# pip install torch torchvision
31-
3230
#
3331

3432
######################################################################

0 commit comments

Comments
 (0)