Skip to content

Commit 84da898

Browse files
ejoebstlsoumith
authored andcommitted
Added explicit tuple element-count to doc for Conv1d. (#4136)
* Added explicit tuple element-count to doc for Conv1d.
1 parent 63d6afd commit 84da898

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

torch/nn/functional.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ def conv1d(input, weight, bias=None, stride=1, padding=0, dilation=1,
3131
weight: filters of shape (out_channels x in_channels x kW)
3232
bias: optional bias of shape (out_channels). Default: None
3333
stride: the stride of the convolving kernel. Can be a single number or
34-
a tuple (sW,). Default: 1
34+
a one-element tuple (sW,). Default: 1
3535
padding: implicit zero paddings on both sides of the input. Can be a
36-
single number or a tuple (padW,). Default: 0
36+
single number or a one-element tuple (padW,). Default: 0
3737
dilation: the spacing between kernel elements. Can be a single number or
38-
a tuple (dW,). Default: 1
38+
a one-element tuple (dW,). Default: 1
3939
groups: split input into groups, in_channels should be divisible by
4040
the number of groups. Default: 1
4141

torch/nn/modules/conv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class Conv1d(_ConvNd):
8383
:math:`L` is a length of signal sequence.
8484
8585
| :attr:`stride` controls the stride for the cross-correlation, a single
86-
number or a tuple.
86+
number or a one-element tuple.
8787
| :attr:`padding` controls the amount of implicit zero-paddings on both
8888
| sides for :attr:`padding` number of points.
8989
| :attr:`dilation` controls the spacing between the kernel points; also

0 commit comments

Comments
 (0)