Improved the documentation for torch.nn.functional.pad (#15984)
authorDerek Kim <bluewhale8202@gmail.com>
Mon, 14 Jan 2019 12:06:38 +0000 (04:06 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 14 Jan 2019 12:12:45 +0000 (04:12 -0800)
commitabdaa477e531bd4ef71da88fbbffa213887492de
treecf3b589624e5529bdae56568463761ce8adb9151
parent6ec753f2f9f950e4a7ac3e2468cb073500b1d930
Improved the documentation for torch.nn.functional.pad (#15984)

Summary:
- Fixed a few typos and grammar errors.
- Changed the sentences a bit.
- Changed the format of the tuples to be consistent with padding notations in the other places. For example, `ReflectionPad2d`'s dostring contains :math:`H_{out} = H_{in} + \text{padding\_top} + \text{padding\_bottom}`.

I also made sure that the generated html doesn't break.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15984

Differential Revision: D13649939

Pulled By: soumith

fbshipit-source-id: 0abfa22a7bf1cbc6546ac4859652ce8741d41232
torch/nn/functional.py