nn_adaptive_avg_pool1d | R Documentation |
The output size is H, for any input size. The number of output features is equal to the number of input planes.
nn_adaptive_avg_pool1d(output_size)
output_size |
the target output size H |
if (torch_is_installed()) {
# target output size of 5
m <- nn_adaptive_avg_pool1d(5)
input <- torch_randn(1, 64, 8)
output <- m(input)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.