
Last chance! 50% off unlimited learning
Sale ends in
Conv_transpose1d
torch_conv_transpose1d(
input,
weight,
bias = list(),
stride = 1L,
padding = 0L,
output_padding = 0L,
groups = 1L,
dilation = 1L
)
input tensor of shape
filters of shape
optional bias of shape
the stride of the convolving kernel. Can be a single number or a tuple (sW,)
. Default: 1
dilation * (kernel_size - 1) - padding
zero-padding will be added to both sides of each dimension in the input. Can be a single number or a tuple (padW,)
. Default: 0
additional size added to one side of each dimension in the output shape. Can be a single number or a tuple (out_padW)
. Default: 0
split input into groups,
the spacing between kernel elements. Can be a single number or a tuple (dW,)
. Default: 1
Applies a 1D transposed convolution operator over an input signal composed of several input planes, sometimes also called "deconvolution".
See nn_conv_transpose1d()
for details and output shape.
# NOT RUN {
if (torch_is_installed()) {
inputs = torch_randn(c(20, 16, 50))
weights = torch_randn(c(16, 33, 5))
nnf_conv_transpose1d(inputs, weights)
}
# }
Run the code above in your browser using DataLab