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[source]ο
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
- static tvm_func_to_awesome_attributes(params: afe.tvm_converter.parameters.TVMConverterParams, func: afe._tvm._defines.TVMFunction) afe.ir.attributes.AwesomeAttributes [source]ο
Functions to extract decomposed group conv2d_transpose Relay attributes and translate it into SiMa IR Conv2DTransposeAttrs
- class afe.tvm_converter.custom_convert_maps.ConstantMultiplyAdd[source]ο
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 [source]ο
Functions to extract decomposed constant, mul, add relay attributes from composite constant_multiply_add and translate it into SiMa IR ConstantMultiplyAddAttrs.