Improve the docstring of nn.random.fork_rng (#15960)
authorDerek Kim <bluewhale8202@gmail.com>
Mon, 14 Jan 2019 10:38:36 +0000 (02:38 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 14 Jan 2019 10:41:18 +0000 (02:41 -0800)
Summary:
Improved the docstring of nn.random.fork_rng
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15960

Differential Revision: D13649929

Pulled By: soumith

fbshipit-source-id: d3843179a2f1f838792c2f07f34deda2c06af56e

torch/random.py

index 26cebf9..e71c425 100644 (file)
@@ -56,10 +56,10 @@ def fork_rng(devices=None, enabled=True, _caller="fork_rng", _devices_kw="device
             the RNG.  CPU RNG state is always forked.  By default, :meth:`fork_rng` operates
             on all devices, but will emit a warning if your machine has a lot
             of devices, since this function will run very slowly in that case.
-            If you explicitly specify devices, this warning will be supressed
+            If you explicitly specify devices, this warning will be suppressed
         enabled (bool): if ``False``, the RNG is not forked.  This is a convenience
             argument for easily disabling the context manager without having
-            to reindent your Python code.
+            to delete it and unindent your Python code under it.
     """
 
     import torch.cuda