InsertInputs

Applicability

Product

Supported

Atlas 350 Accelerator Card

√

Atlas A3 training product/Atlas A3 inference product

√

Atlas A2 training product/Atlas A2 inference product

√

Atlas 200I/500 A2 inference product

√

Atlas inference product

√

Atlas training product

√

Description

Inserts the input information of the fused operator into FusionScopesResult.

Prototype

APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments instead.

1
2
void InsertInputs(const std::string &inner_op_name, const std::vector<int32_t> &index_map);
void InsertInputs(const char_t *inner_op_name, const std::vector<int32_t> &index_map);

Parameters

Parameter

Input/Output

Description

inner_op_name

Input

Fused operator name

index_map

Input

Index information of the fused operator, which is of the vector type. The index of the vector indicates the input index of the small operator in the scope. Its value indicates the input index of the fused operator. If the fused operator does not use the index, the placeholder kFusionDisableIndex is used.

Returns

None

Restrictions

None