def avg_pool2d(input, kernel_size, stride=None, padding=0, ceil_mode=False, count_include_pad=True):
 return _functions.thnn.AvgPool2d(kernel_size, stride, padding, ceil_mode, count_include_pad)(input)

def avg_pool2d ( input , kernel_size , stride = None , padding = 0 , ceil_mode = False , count_include_pad = True ) : return _functions . thnn . AvgPool2d ( kernel_size , stride , padding , ceil_mode , count_include_pad ) ( input )
applies 2d average-pooling operation in kh x kw regions by step size dh x dw steps .