megengine.functional.nn.sliding_window

sliding_window(inp, kernel_size, padding=0, stride=1, dilation=1)[source]

Extracts sliding local blocks from a batched input tensor.

Refer to SlidingWindow for more information.

Parameters
Return type

Tensor