Skip to content

Commit 95f2980

Browse files
committed
Fix ScriptModule docstring
1 parent 36c87f1 commit 95f2980

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

torch/jit/_script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ def __getattr__(self, attr):
271271
# which always throws an exception.
272272

273273
class ScriptModule(with_metaclass(ScriptMeta, Module)): # type: ignore
274-
"""
275-
``ScriptModule``s wrap a C++ ``torch::jit::Module``. ``ScriptModule``s
274+
r"""
275+
A wrapper around C++ ``torch::jit::Module``. ``ScriptModule``\s
276276
contain methods, attributes, parameters, and
277277
constants. These can be accessed the same as on a normal ``nn.Module``.
278278
"""

0 commit comments

Comments
 (0)