
Conv1d
torch_conv1d(
input,
weight,
bias = list(),
stride = 1L,
padding = 0L,
dilation = 1L,
groups = 1L
)
input tensor of shape
filters of shape
optional bias of shape NULL
the stride of the convolving kernel. Can be a single number or a one-element tuple (sW,)
. Default: 1
implicit paddings on both sides of the input. Can be a single number or a one-element tuple (padW,)
. Default: 0
the spacing between kernel elements. Can be a single number or a one-element tuple (dW,)
. Default: 1
split input into groups,
Applies a 1D convolution over an input signal composed of several input planes.
See nn_conv1d()
for details and output shape.
if (torch_is_installed()) {
filters = torch_randn(c(33, 16, 3))
inputs = torch_randn(c(20, 16, 50))
nnf_conv1d(inputs, filters)
}
Run the code above in your browser using DataLab