Perform 1D max pooling on an input tensor:
The max pooling operation slides a window of size over the input tensor with stride , dilation , and padding , computing the maximum value within each window position.
input
of size (input tensor)kernel_size
(): Size of the pooling windowstride
(): Step size between window positionspadding
(): Number of zero-padding elements added on all sidesdilation
(): Spacing between kernel elementsoutput
of size where:
GPU Type
Language
Data Type
Loading editor...
CUDA C++ environment
Sample Run Results
Hit "Run" to test your code with sample inputs
For the best coding experience, please switch to a desktop device to write and submit your solution.