kernels
Classes
Functions
k_arm_convolve_s16_group_ch_mult_1
Group s16 conv2d with ch_mult==1: filter C==1 and input_ch==output_ch.
resolve_float_conv_scratch_size
resolve_float_conv_scratch_size(*, cin: int, kh: int, kw: int, elt_size: int, batch: int, in_h: int, in_w: int, out_h: int, out_w: int, stride_height: int, stride_width: int, padding_height: int, padding_width: int, dilation_height: int, dilation_width: int) -> int
Port arm_convolve_{f16,f32}_get_buffer_size route selection.
CONV_2D's float kernel specs and DEPTHWISE_CONV_2D's
convert-to-convolution reroute (see
depthwise_conv_2d.operator._resolve_float_scratch) both hand a
[Cout, kH, kW, Cin] filter and matching input/output dims to this
same generic float convolution wrapper, so one port of its route
selection sizes both.
Parameters:
-
(cinint) –Input channel count.
-
(khint) –Filter height.
-
(kwint) –Filter width.
-
(elt_sizeint) –Size in bytes of one input element.
-
(batchint) –Input batch count.
-
(in_hint) –Input height.
-
(in_wint) –Input width.
-
(out_hint) –Output height.
-
(out_wint) –Output width.
-
(stride_heightint) –Convolution stride along height.
-
(stride_widthint) –Convolution stride along width.
-
(padding_heightint) –Padding along height.
-
(padding_widthint) –Padding along width.
-
(dilation_heightint) –Dilation along height.
-
(dilation_widthint) –Dilation along width.
Returns:
-
int(int) –Bytes the wrapper asks for, zero if it runs without scratch.