pool
torch_to_nnef.op.aten.pool
adaptive_avg_poolnd
Map PyTorch: 'aten:adaptive_avg_pool{1,2,3}d' to NNEF.
adaptive_max_poolnd
Map PyTorch: adaptive_max_pool{1,2,3}d to NNEF.
avg_pool_nd
Map PyTorch: 'aten:avg_pool(2|3)d', 'aten:max_pool3d' to NNEF.
Cpp func parameters:.
(const Tensor& input,
IntArrayRef kernel_size,
IntArrayRef stride,
IntArrayRef padding,
bool ceil_mode,
bool count_include_pad,
c10::optional
_pooling_op expect:
(input_node, kernel_size_node, stride_node, padding_node, dilation_node, ceil_mode_node)
max_pool_nd
Map PyTorch: 'aten:max_pool2d', 'aten:max_pool3d' to NNEF.
max_pool_nd_with_indices
Map PyTorch: 'aten:max_pool{1,2,3}d_with_indices' to NNEF.
Lowers to NNEF stdlib's max_pool_with_index fragment which
returns both the pooled values and the (per-window argmax)
indices. Tract only -- the fragment requires the
argmax_pool + sample primitives behind it.
upsample_nearest_nd
Map PyTorch aten::upsample_nearest{1,2,3}d to NNEF.
All three variants share (input, output_size, scales) (with the
1-D / 3-D versions packing scales into a single List[float]).
The implementation is rank-agnostic for the debox path (tract
= 0.22 with
upsample_with_debox=True); the legacydeconvfallback only handles the original 2-D case.