Skip to content

Commit 293fa5f

Browse files
Yashfacebook-github-bot
Yash
authored andcommitted
[Documentation] Fix minor typo in torch.serialization (pytorch#33549)
Summary: Pull Request resolved: pytorch#33549 Differential Revision: D20002545 Pulled By: albanD fbshipit-source-id: 46fe2002329e5250c009eb066432909b71ecd74d
1 parent e77abb9 commit 293fa5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/serialization.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def load(f, map_location=None, pickle_module=pickle, **pickle_load_args):
517517
object, already moved to the right device. Otherwise, :func:`torch.load` will
518518
fall back to the default behavior, as if :attr:`map_location` wasn't specified.
519519
520-
If :attr:`map_location` is a :class:`torch.device` object or a string contraining
520+
If :attr:`map_location` is a :class:`torch.device` object or a string containing
521521
a device tag, it indicates the location where all tensors should be loaded.
522522
523523
Otherwise, if :attr:`map_location` is a dict, it will be used to remap location tags

0 commit comments

Comments
 (0)