onnx-mlir
OMTensorList.h
Go to the documentation of this file.
1 //===-------- OMTensorList.h - OMTensorList Declaration header-------------===//
2 //
3 // Copyright 2019-2020 The IBM Research Authors.
4 //
5 // =============================================================================
6 //
7 // This file contains declaration of OMTensorList data structures and
8 // API functions.
9 //
10 //===----------------------------------------------------------------------===//
11 
12 #ifndef ONNX_MLIR_OMTENSORLIST_H
13 #define ONNX_MLIR_OMTENSORLIST_H
14 
16 
17 struct OMTensorList;
18 
19 #ifndef __cplusplus
20 typedef struct OMTensorList OMTensorList;
21 #endif
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
39 OMTensorList *omTensorListCreate(OMTensor **tensors, int n);
40 
51 
62 
71 
79 OMTensor *omTensorListGetOmtByIndex(OMTensorList *list, size_t index);
80 
81 #ifdef __cplusplus
82 }
83 #endif
84 
85 #endif // ONNX_MLIR_OMTENSORLIST_H
struct OMTensorList OMTensorList
Definition: OMTensorList.h:20
int omTensorListGetSize(OMTensorList *list)
OMTensorList size getter.
OMTensorList * omTensorListCreate(OMTensor **tensors, int n)
OMTensorList creator.
struct OMTensor OMTensor
Definition: OMTensor.h:52
void omTensorListDestroy(OMTensorList *list)
OMTensorList destroyer.
OMTensor * omTensorListGetOmtByIndex(OMTensorList *list, size_t index)
OMTensorList OMTensor getter by index.
OMTensor ** omTensorListGetOmtArray(OMTensorList *list)
OMTensorList OMTensor array getter.