File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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``
115115because they use Python features that TorchScript doesn't support yet,
116116you could annotate those with ``@torch.jit.ignore ``
117117
118- ``my_module `` is an instance of
118+ ``sm `` is an instance of
119119``ScriptModule `` that is ready for serialization.
120120
121121Step 2: Serializing Your Script Module to a File
@@ -132,7 +132,7 @@ on the module and pass it a filename::
132132 traced_script_module.save("traced_resnet_model.pt")
133133
134134This 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") ``
136136We have now officially left the realm of Python and are ready to cross over to the sphere
137137of C++.
138138
You can’t perform that action at this time.
0 commit comments