![]() |
TIOVX User Guide
|
TVM Network Kernels.
Data Structures | |
| struct | tivxTVMJ7Params |
| TVM params structure. More... | |
Defines | |
| #define | TIVX_KERNEL_TVM_NAME "com.ti.tvm" |
| tvm kernel name | |
Functions | |
| void | tivxTVMLoadKernels (vx_context context) |
| Used for the Application to load the tvm kernels into the context. | |
| void | tivxTVMUnLoadKernels (vx_context context) |
| Used for the Application to unload the tvm kernels from the context. | |
| void | tivxRegisterTVMTargetKernels (void) |
| Function to register TVM Kernels on the TVM Target. | |
| void | tivxUnRegisterTVMTargetKernels (void) |
| Function to un-register TVM Kernels on the TVM Target. | |
| VX_API_ENTRY vx_node VX_API_CALL | tivxTVMNode (vx_graph graph, vx_kernel kernel, vx_reference appParams[], vx_tensor input_tensors[], vx_tensor output_tensors[]) |
| [Graph] Creates a TVM Node. More... | |
| vx_kernel | tivxAddKernelTVM (vx_context context, uint32_t num_input_tensors, uint32_t num_output_tensors) |
| Used for the Application to create the tvm kernel from the context. More... | |
| VX_API_ENTRY vx_node VX_API_CALL tivxTVMNode | ( | vx_graph | graph, |
| vx_kernel | kernel, | ||
| vx_reference | appParams[], | ||
| vx_tensor | input_tensors[], | ||
| vx_tensor | output_tensors[] | ||
| ) |
[Graph] Creates a TVM Node.
| [in] | graph | Reference to vx_graph. |
| [in] | kernel | Reference to vx_kernel. |
| [in,out] | appParams | is an array of 2 parameters:
|
| [in] | input_tensors | Array of input tensors This parameter is ignored when the first layer of the network is a data layer, which is most of the time. Only networks that are dependent on the output of a previous networks have first layer that are not data layer. |
| [out] | output_tensors | Array of output tensors |
vx_node. | vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |
| vx_kernel tivxAddKernelTVM | ( | vx_context | context, |
| uint32_t | num_input_tensors, | ||
| uint32_t | num_output_tensors | ||
| ) |
Used for the Application to create the tvm kernel from the context.
| [in] | context | OpenVX context which must be created using vxCreateContext |
| [in] | num_input_tensors | Number of input vx_tensor objects to be created |
| [in] | num_output_tensors | Number of output vx_tensor objects to be created |