def avg_pool3d(input, kernel_size, stride=None):
 return _functions.thnn.AvgPool3d(kernel_size, stride)(input)

def avg_pool3d ( input , kernel_size , stride = None ) : return _functions . thnn . AvgPool3d ( kernel_size , stride ) ( input )
applies 3d average-pooling operation in kt x kh x kw regions by step size kt x dh x dw steps .