Skip to content

Commit 5e69e76

Browse files
Yifu Wangfacebook-github-bot
authored andcommitted
Remove padding_mode from torch.nn.functional.conv{1,2,3}d's docstr (#20891)
Summary: Fixes #20694 Pull Request resolved: #20891 Differential Revision: D15510790 Pulled By: soumith fbshipit-source-id: aa3630693c7446bf18a390cb49c4df9bc9c59eea
1 parent 4c5b1e3 commit 5e69e76

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

torch/nn/functional.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
conv1d = _add_docstr(torch.conv1d, r"""
19-
conv1d(input, weight, bias=None, stride=1, padding=0, dilation=1, groups=1, padding_mode='zeros') -> Tensor
19+
conv1d(input, weight, bias=None, stride=1, padding=0, dilation=1, groups=1) -> Tensor
2020
2121
Applies a 1D convolution over an input signal composed of several input
2222
planes.
@@ -37,7 +37,6 @@
3737
a one-element tuple `(dW,)`. Default: 1
3838
groups: split input into groups, :math:`\text{in\_channels}` should be divisible by
3939
the number of groups. Default: 1
40-
padding_mode: the type of paddings applied to both sided can be: `zeros` or `circular`. Default: `zeros`
4140
4241
Examples::
4342
@@ -47,7 +46,7 @@
4746
""")
4847

4948
conv2d = _add_docstr(torch.conv2d, r"""
50-
conv2d(input, weight, bias=None, stride=1, padding=0, dilation=1, groups=1, padding_mode='zeros') -> Tensor
49+
conv2d(input, weight, bias=None, stride=1, padding=0, dilation=1, groups=1) -> Tensor
5150
5251
Applies a 2D convolution over an input image composed of several input
5352
planes.
@@ -68,7 +67,6 @@
6867
a tuple `(dH, dW)`. Default: 1
6968
groups: split input into groups, :math:`\text{in\_channels}` should be divisible by the
7069
number of groups. Default: 1
71-
padding_mode: the type of paddings applied to both sided can be: `zeros` or `circular`. Default: `zeros`
7270
7371
Examples::
7472
@@ -79,7 +77,7 @@
7977
""") # noqa: E501
8078

8179
conv3d = _add_docstr(torch.conv3d, r"""
82-
conv3d(input, weight, bias=None, stride=1, padding=0, dilation=1, groups=1, padding_mode='zeros') -> Tensor
80+
conv3d(input, weight, bias=None, stride=1, padding=0, dilation=1, groups=1) -> Tensor
8381
8482
Applies a 3D convolution over an input image composed of several input
8583
planes.
@@ -100,7 +98,6 @@
10098
a tuple `(dT, dH, dW)`. Default: 1
10199
groups: split input into groups, :math:`\text{in\_channels}` should be divisible by
102100
the number of groups. Default: 1
103-
padding_mode: the type of paddings applied to both sided can be: `zeros` or `circular`. Default: `zeros`
104101
105102
Examples::
106103

0 commit comments

Comments
 (0)