Skip to content

Commit 8c4224b

Browse files
committed
chore: Minor update
Signed-off-by: Dheeraj Peri <[email protected]>
1 parent c3d648b commit 8c4224b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docsrc/tutorials/creating_torchscript_module_in_python.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ To trace an instance of our LeNet module, we can call ``torch.jit.trace`` with a
6464

6565
.. code-block:: python
6666
67-
import torch.jit
67+
import torch
6868
6969
model = LeNet()
7070
input_data = torch.empty([1,1,32,32])
@@ -76,7 +76,7 @@ include these components. We can run the script compiler on our LeNet module by
7676

7777
.. code-block:: python
7878
79-
import torch.jit
79+
import torch
8080
8181
model = LeNet()
8282
script_model = torch.jit.script(model)
@@ -130,7 +130,7 @@ For either traced or scripted modules, you can save the module to disk with the
130130

131131
.. code-block:: python
132132
133-
import torch.jit
133+
import torch
134134
135135
model = LeNet()
136136
script_model = torch.jit.script(model)

0 commit comments

Comments
 (0)