AutoMappingFn

Function Usage

The callback function that implements automatic mapping.

Prototype

1
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 AI processor.

For details about class Operator, see Operator.

Constraints

If the attributes of the original TensorFlow operator are inconsistent with those of operators supported by 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 Examples.