File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ If you need to exclude some methods in your ``nn.Module``
115
115
because they use Python features that TorchScript doesn't support yet,
116
116
you could annotate those with ``@torch.jit.ignore ``
117
117
118
- ``my_module `` is an instance of
118
+ ``sm `` is an instance of
119
119
``ScriptModule `` that is ready for serialization.
120
120
121
121
Step 2: Serializing Your Script Module to a File
@@ -132,7 +132,7 @@ on the module and pass it a filename::
132
132
traced_script_module.save("traced_resnet_model.pt")
133
133
134
134
This will produce a ``traced_resnet_model.pt `` file in your working directory.
135
- If you also would like to serialize ``my_module ``, call ``my_module .save("my_module_model.pt") ``
135
+ If you also would like to serialize ``sm ``, call ``sm .save("my_module_model.pt") ``
136
136
We have now officially left the realm of Python and are ready to cross over to the sphere
137
137
of C++.
138
138
You can’t perform that action at this time.
0 commit comments