SHL 2.2.x
|
#include <csinn_data_structure.h>
Public Attributes | |
void * | data |
enum csinn_dtype_enum | dtype |
enum csinn_mem_type_enum | mtype |
int32_t | dim [MAX_DIM] |
int32_t | dim_count |
uint32_t | is_const |
char * | name |
int32_t | layout |
int32_t | quant_channel |
struct csinn_quant_info * | qinfo |
struct csinn_session * | sess |
CSI-NN tensor
void* csinn_tensor::data |
Real data pointing to tensors
enum csinn_dtype_enum csinn_tensor::dtype |
Description the data type of the tensor
enum csinn_mem_type_enum csinn_tensor::mtype |
Describes the storage type of the tensor
int32_t csinn_tensor::dim[MAX_DIM] |
Describes the size of each dimension in the tensor.
int32_t csinn_tensor::dim_count |
The number of tensor dimensions. The current version supports a maximum of eight dimensions
uint32_t csinn_tensor::is_const |
Whether the marker tensor is a constant
char* csinn_tensor::name |
The name of the current tensor
int32_t csinn_tensor::layout |
Describes the data layout type of the tensor
int32_t csinn_tensor::quant_channel |
Specifies the number of qinfo. 0 indicates non-quantization, 1 indicates normal quantization, and greater than 1 indicates channel quantization
struct csinn_quant_info* csinn_tensor::qinfo |
An array pointing to the quantization information
struct csinn_session* csinn_tensor::sess |
Indicates the data structure of the current session