Trivial typo fixings in nn.functional dropout* docstrings (#15951)
authorDerek Kim <bluewhale8202@gmail.com>
Fri, 11 Jan 2019 06:40:25 +0000 (22:40 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 11 Jan 2019 06:42:52 +0000 (22:42 -0800)
Summary:
Defualt -> Default
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15951

Differential Revision: D13633875

Pulled By: soumith

fbshipit-source-id: 0da823ef235418396e9322089f6610b592e6990f

torch/nn/functional.py

index 912d65d..bbaa61f 100644 (file)
@@ -737,7 +737,7 @@ def dropout(input, p=0.5, training=True, inplace=False):
 
     Args:
         p: probability of an element to be zeroed. Default: 0.5
-        training: apply dropout if is ``True``. Defualt: ``True``
+        training: apply dropout if is ``True``. Default: ``True``
         inplace: If set to ``True``, will do this operation in-place. Default: ``False``
     """
     if p < 0. or p > 1.:
@@ -777,7 +777,7 @@ def dropout2d(input, p=0.5, training=True, inplace=False):
 
     Args:
         p: probability of a channel to be zeroed. Default: 0.5
-        training: apply dropout if is ``True``. Defualt: ``True``
+        training: apply dropout if is ``True``. Default: ``True``
         inplace: If set to ``True``, will do this operation in-place. Default: ``False``
     """
     if p < 0. or p > 1.:
@@ -802,7 +802,7 @@ def dropout3d(input, p=0.5, training=True, inplace=False):
 
     Args:
         p: probability of a channel to be zeroed. Default: 0.5
-        training: apply dropout if is ``True``. Defualt: ``True``
+        training: apply dropout if is ``True``. Default: ``True``
         inplace: If set to ``True``, will do this operation in-place. Default: ``False``
     """
     # This is 100% the same code as dropout2d. We duplicate this code so that