AutoMappingFn
Description
The callback function that implements automatic mapping.
Prototype
Status AutoMappingFn(const google::protobuf::Message *op_src, ge::Operator &op)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
op_src |
Input |
Operator in the original model before conversion, including the attributes of the operator in the original model. |
op |
Input |
Operator that adapts to Ascend AI Processor. For details about class Operator, see Operator. |
Restrictions
If the attributes of the original TensorFlow operator are inconsistent with those of operators supported by Ascend AI Processor, the AutoMappingFn function cannot be used in the callback function ParseParamsByOperatorFn. In this case, use the AutoMappingByOpFn API in ParseParamsByOperatorFn to automatically parse the attributes that can be mapped. For usage examples, see Example.