Go to the source code of this file.
◆ OMTensorList
◆ omTensorListCreate()
OMTensorList creator.
Create an OMTensorList with specified OMTensor array. The array of pointers to OMTensor pointers is used without copying, so caller should not free the tensors
ptr.
- Parameters
-
tensors | array of pointers to OMTensor |
n | number of elements in tensors array |
- Returns
- pointer to the OMTensorList created, NULL if creation failed.
◆ omTensorListDestroy()
OMTensorList destroyer.
Destroy the OMTensorList struct recursively. That is to say, both the ptr to the OMTensor pointers AND the OMTensor pointers are freed.
- Parameters
-
list | pointer to the OMTensorList to be destroyed |
◆ omTensorListGetOmtArray()
OMTensorList OMTensor array getter.
The pointer to OMTensor pointers are returned without copying, so caller should not free the returned pointer.
- Parameters
-
list | pointer to the OMTensorList |
- Returns
- pointer to the array of OMTensor pointers.
◆ omTensorListGetOmtByIndex()
OMTensorList OMTensor getter by index.
- Parameters
-
list | pointer to the OMTensorList |
index | index of the OMTensor pointer to the OMTensor, NULL if not found. |
◆ omTensorListGetSize()
OMTensorList size getter.
- Parameters
-
list | pointer to the OMTensorList |
- Returns
- number of elements in the OMTensor array.