目录

HostInputs

Function Description

If scalar inputs exist in operator inputs, the host address needs to be passed. This API is used to specify the index of the input address of an operator acting as the host address.

Function Prototype

OpImplRegisterV2 &HostInputs(std::initializer_list<int32_t> inputs);

Parameters

Parameter Input/Output Description
inputs Input Indicates the list of input indexes. For example, inputs={0, 3} indicates that the addresses of input 0 and input 3 are host addresses.

Return Value

OpImplRegisterV2 object of the operator, where the index of the input address of an operator acting as the host address is registered.

Restrictions

None