Port Combinations - 2024.2 English

AI Engine-ML Kernel and Graph Programming Guide (UG1603)

Document ID
UG1603
Release Date
2024-11-28
Version
2024.2 English

The port combinations used in the constructor templates are specified in the following table.

Table 1. Port Combinations
PortA PortB Comment
port <output> port <output> Connect a kernel output to a parent graph output.
port <output> port <input> Connect a kernel output to a kernel input.
port <output> port <input> Connect a kernel output to a shared buffer input.
port <output> port <input> Connect a shared buffer output to a kernel input.
port <output> port <input> Connect a kernel output to an external buffer input.
port <output> port <input> Connect an external buffer output to a kernel input.
port <output> port <inout> Connect an output of a kernel or a subgraph to an inout port of another kernel or a subgraph.
port <input> port <input> Connect a graph input to a kernel input.
port <input> port <inout> Connect an input of a parent graph to an inout port of a child subgraph or a kernel.
port <inout> > port <input> Connect an inout port of a parent graph or a kernel to an input of another kernel or a subgraph.
port <inout> port <output> Connect an inout port of a subgraph or a kernel to an output of a parent graph.
parameter& kernel& Connect an initialized parameter variable to a kernel ensuring that the compiler allocates space for the variable in the memory around the kernel.