Fold
Combines an array of sliding local blocks into a large containing tensor.
nnf_fold( input, output_size, kernel_size, dilation = 1, padding = 0, stride = 1 )
input
: the input tensoroutput_size
: the shape of the spatial dimensions of the output (i.e., output$sizes()[-c(1,2)]
)kernel_size
: the size of the sliding blocksdilation
: a parameter that controls the stride of elements within the neighborhood. Default: 1padding
: implicit zero padding to be added on both sides of input. Default: 0stride
: the stride of the sliding blocks in the input spatial dimensions. Default: 1Currently, only 4-D output tensors (batched image-like tensors) are supported.
Useful links