From da753b7ccf22ad75c6b923b5f059b703e7081426 Mon Sep 17 00:00:00 2001 From: Derek Kim Date: Thu, 10 Jan 2019 22:40:25 -0800 Subject: [PATCH] Trivial typo fixings in nn.functional dropout* docstrings (#15951) 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/torch/nn/functional.py b/torch/nn/functional.py index 912d65d..bbaa61f 100644 --- a/torch/nn/functional.py +++ b/torch/nn/functional.py @@ -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 -- 2.7.4