tranpose_reverse_conv
Classes
TransposeReverseConvOptions
Options for the TransposeReverseConv transform.
TransposeReverseConv
The purpose of this transform is to convert TRANSPOSE_CONV to CONV_2D operators when possible and efficient.
- Find any TRANSPOSE_CONV operator that is reversible
- Transform to CONV_2D operator if threshold is met.
Functions
convert_operator
Convert the TRANSPOSE_CONV operator to CONV_2D operator.
Parameters:
-
op
AirOperator
) –The TRANSPOSE_CONV operator to convert.
-
model
AirModel
) –The AIR model
is_reversible
Check if the TRANSPOSE_CONV operator is reversible.
Parameters:
-
op
AirOperator
) –The TRANSPOSE_CONV operator to check.
-
model
AirModel
) –The AIR model
Returns:
-
bool
(bool
) –True if the operator is reversible, False otherwise.
is_efficient
Check if the TRANSPOSE_CONV operator is efficient to convert.
Parameters:
-
op
AirOperator
) –The TRANSPOSE_CONV operator to check.
-
model
AirModel
) –The AIR model
Returns:
-
bool
(bool
) –True if the operator is efficient to convert, False otherwise.