How to apply 4D maxpool in pytorch?

This layer won’t work as the kernel_size is specified as (5, 4) while the input seems to have a shape of [batch_size, channels, 3000, 1] which is too small in the width.