afe.tvm_converter.custom_convert_mapsο
- TODO(Joey.Chou):
- Use registration method to register
custom_convert_map
MergeComposite Pattern _PATTERN_TABLE
tvm_func_to_awesome_attributes
Attributesο
Classesο
Models: CenterNet |
|
Merge multiply with constant to add op. |
|
Module Contentsο
- class afe.tvm_converter.custom_convert_maps.GroupConv2DTransposeο
Models: CenterNet Author: Alicja Kwasniewska, Joey Chou
Decompose a nn.conv2d_transpose with groups > 1 into splits, multiple nn.conv2d_transpose, and concatenate as below:
split
βββββββββ β¦. | | | | | β¦
- tuple_get_item β¦..
- nn.conv2d_transpose
- | | | | β¦
- βββββββββ β¦.
- tuple
- concatenate
- ONNX_op_name = 'ConvTranspose'ο
- static map_impl()ο
- static tvm_func_to_awesome_attributes(params: afe.tvm_converter.parameters.TVMConverterParams, func: afe._tvm._defines.TVMFunction) afe.ir.attributes.AwesomeAttributes ο
Functions to extract decomposed group conv2d_transpose Relay attributes and translate it into SiMa IR Conv2DTransposeAttrs
- class afe.tvm_converter.custom_convert_maps.ConstantMultiplyAddο
Merge multiply with constant to add op. Do it for both inputs if possible.
- static tvm_func_to_awesome_attributes(params: afe.tvm_converter.parameters.TVMConverterParams, func: afe._tvm._defines.TVMFunction) afe.ir.attributes.AwesomeAttributes ο
Functions to extract decomposed constant, mul, add relay attributes from composite constant_multiply_add and translate it into SiMa IR ConstantMultiplyAddAttrs.
- class afe.tvm_converter.custom_convert_maps.RenamerWithAttrsChecker(new_name, checker)ο
- checkerο
- afe.tvm_converter.custom_convert_maps.AVAILABLE_ANNOTATIONS = ['int8', 'int16']ο
- afe.tvm_converter.custom_convert_maps.CUSTOM_CONVERT_MAP_DICTο
- afe.tvm_converter.custom_convert_maps.TVM_FUNC_TO_AWESOME_ATTRIBUTES_DICTο