Outputs

Function Usage

Sets vectors of the void* pointer to the outputs of KernelContext.

Prototype

ContextBuilder &Outputs(std::vector<void *> outputs);

Parameters

Parameter

Input/Output

Description

outputs

Input

Saves the output vectors of the void* pointer.

Returns

Object of the current ContextBuilder

Constraints

None

Example

PlatformInfo platformInfo;
auto contextBuilder = context_ascendc::ContextBuilder().Outputs({nullptr, reintrerpret_cast<void *>(&platformInfo)});