Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions torch/nn/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def conv1d(input, weight, bias=None, stride=1, padding=0, dilation=1,
weight: filters of shape (out_channels x in_channels x kW)
bias: optional bias of shape (out_channels). Default: None
stride: the stride of the convolving kernel. Can be a single number or
a tuple (sW,). Default: 1
a one-element tuple (sW,). Default: 1
padding: implicit zero paddings on both sides of the input. Can be a
single number or a tuple (padW,). Default: 0
single number or a one-element tuple (padW,). Default: 0
dilation: the spacing between kernel elements. Can be a single number or
a tuple (dW,). Default: 1
a one-element tuple (dW,). Default: 1
groups: split input into groups, in_channels should be divisible by
the number of groups. Default: 1

Expand Down
2 changes: 1 addition & 1 deletion torch/nn/modules/conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Conv1d(_ConvNd):
:math:`L` is a length of signal sequence.

| :attr:`stride` controls the stride for the cross-correlation, a single
number or a tuple.
number or a one-element tuple.
| :attr:`padding` controls the amount of implicit zero-paddings on both
| sides for :attr:`padding` number of points.
| :attr:`dilation` controls the spacing between the kernel points; also
Expand Down