pooling_output_shape Class — pytorch Architecture
Architecture documentation for the pooling_output_shape class in Pool.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/Pool.h lines 77–88
template<typename T>
inline T pooling_output_shape(
T inputSize, T kernelSize, T pad, T stride, T dilation, bool ceil_mode) {
TORCH_CHECK(stride != 0, "stride should not be zero");
TORCH_CHECK(pad >= 0,
"pad must be non-negative, but got pad: ", pad);
TORCH_CHECK(pad <= ((kernelSize - 1) * dilation + 1) / 2,
"pad should be at most half of effective kernel size, but got pad=",
pad, ", kernel_size=", kernelSize, " and dilation=", dilation)
return pooling_output_shape_pad_lr(
inputSize, kernelSize, pad, pad, stride, dilation, ceil_mode);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free