operator
Classes
TransposeConvOperator
TransposeConvOperator(op: AirOperator, model: AirModel, platform: SocPlatform, prefix: str = 'aot', attributes: dict[str, str] = {})
TRANSPOSE_CONV operator.
This operator performs a transposed convolution operation on the input tensor with the given weight and bias tensors.
Parameters:
-
(opAirOperator) –The AIR operator to wrap.
-
(modelAirModel) –The AIR model.
-
(platformSocPlatform) –The target platform for code generation.
-
(prefixstr, default:'aot') –Prefix for generated code files. Defaults to "aot".
-
(attributesdict[str, str], default:{}) –Attributes for template values. Defaults to {}.
Functions
ctx_buf_required
Whether the dispatched transpose-conv kernel dereferences ctx->buf.
Only the int8 kernel takes a buffer; the float lowering calls
arm_transpose_conv_f32 / _f16, which discard the context
entirely. Stated against the output dtype -- the same discriminator the
template uses to choose the kernel -- rather than against the scratch
byte count, so the guard compares two independent derivations.
Returns:
-
bool–Truefor the int8 lowering.
compute_values
emit
Generate the source code for the operator.
Parameters:
-
(save_pathPath) –Path to save the generated code.