megengine.functional.nn.sliding_window

sliding_window(inp, kernel_size, padding=0, stride=1, dilation=1)[源代码]

Extracts sliding local blocks from a batched input tensor.

Refer to SlidingWindow for more information.

参数
返回类型

Tensor

返回

输出张量。