powered by
The output size is H, for any input size. The number of output features is equal to the number of input planes.
nn_adaptive_max_pool1d(output_size, return_indices = FALSE)
the target output size H
if TRUE, will return the indices along with the outputs. Useful to pass to nn_max_unpool1d(). Default: FALSE
TRUE
nn_max_unpool1d()
FALSE
if (torch_is_installed()) { # target output size of 5 m <- nn_adaptive_max_pool1d(5) input <- torch_randn(1, 64, 8) output <- m(input) }
Run the code above in your browser using DataLab