Outputs

Function

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

Prototype

1
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

Examples

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