HostInputs
Function Usage
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.
Prototype
1 | 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. |
Returns
OpImplRegisterV2 object of the operator, where the index of the input address of an operator acting as the host address is registered.
Constraints
None
Parent topic: OpImplRegisterV2