SHL 2.2.x
Loading...
Searching...
No Matches
csinn_tensor Struct Reference

#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_infoqinfo
 
struct csinn_sessionsess
 

Detailed Description

CSI-NN tensor

Member Data Documentation

◆ data

void* csinn_tensor::data

Real data pointing to tensors

◆ dtype

enum csinn_dtype_enum csinn_tensor::dtype

Description the data type of the tensor

◆ mtype

enum csinn_mem_type_enum csinn_tensor::mtype

Describes the storage type of the tensor

◆ dim

int32_t csinn_tensor::dim[MAX_DIM]

Describes the size of each dimension in the tensor.

◆ dim_count

int32_t csinn_tensor::dim_count

The number of tensor dimensions. The current version supports a maximum of eight dimensions

◆ is_const

uint32_t csinn_tensor::is_const

Whether the marker tensor is a constant

◆ name

char* csinn_tensor::name

The name of the current tensor

◆ layout

int32_t csinn_tensor::layout

Describes the data layout type of the tensor

◆ quant_channel

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

◆ qinfo

struct csinn_quant_info* csinn_tensor::qinfo

An array pointing to the quantization information

◆ sess

struct csinn_session* csinn_tensor::sess

Indicates the data structure of the current session