From 3da4a0473368e9ac18376a9797c46c28cf0bb45d Mon Sep 17 00:00:00 2001 From: derek Date: Fri, 21 Dec 2018 11:54:57 -0800 Subject: [PATCH] Fixed trivial typos in Dropout2D and Dropout3D classes (#15200) Summary: Fixed trivial typos in Dropout2D and Dropout3D classes weiyangfb Pull Request resolved: https://github.com/pytorch/pytorch/pull/15200 Differential Revision: D13537888 Pulled By: ezyang fbshipit-source-id: 8fb06027ca663a2e4bfa016af400698ae3c88ad1 --- torch/nn/modules/dropout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torch/nn/modules/dropout.py b/torch/nn/modules/dropout.py index 2b114db..e9ec872 100644 --- a/torch/nn/modules/dropout.py +++ b/torch/nn/modules/dropout.py @@ -62,7 +62,7 @@ class Dropout(_DropoutNd): class Dropout2d(_DropoutNd): r"""Randomly zero out entire channels (a channel is a 2D feature map, e.g., the :math:`j`-th channel of the :math:`i`-th sample in the - batched input is a 2D tensor :math:`\text{input}[i, j]`) of the input tensor). + batched input is a 2D tensor :math:`\text{input}[i, j]`). Each channel will be zeroed out independently on every forward call. with probability :attr:`p` using samples from a Bernoulli distribution. @@ -106,7 +106,7 @@ class Dropout2d(_DropoutNd): class Dropout3d(_DropoutNd): r"""Randomly zero out entire channels (a channel is a 3D feature map, e.g., the :math:`j`-th channel of the :math:`i`-th sample in the - batched input is a 3D tensor :math:`\text{input}[i, j]`) of the input tensor). + batched input is a 3D tensor :math:`\text{input}[i, j]`). Each channel will be zeroed out independently on every forward call. with probability :attr:`p` using samples from a Bernoulli distribution. -- 2.7.4