Perform 1D average pooling on an input tensor:
The average pooling operation slides a window of size over the input tensor with stride and padding , computing the average 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 sidesoutput 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.