SSCMA-Micro CPP SDK  v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
ma_tensor_t Struct Reference

#include <ma_types.h>

Collaboration diagram for ma_tensor_t:

Public Attributes

ma_shape_t shape
 
ma_quant_param_t quant_param
 
ma_tensor_type_t type
 
size_t size
 
union {
   void *   data
 
   uint8_t *   u8
 
   int8_t *   s8
 
   uint16_t *   u16
 
   int16_t *   s16
 
   uint32_t *   u32
 
   int32_t *   s32
 
   uint64_t *   u64
 
   int64_t *   s64
 
   float *   f32
 
   double *   f64
 
data
 
bool is_physical
 
bool is_variable
 
void * external_handler = nullptr
 

Member Data Documentation

◆ data [1/2]

void* ma_tensor_t::data

◆  [2/2]

union { ... } ma_tensor_t::data

◆ external_handler

void* ma_tensor_t::external_handler = nullptr

◆ f32

float* ma_tensor_t::f32

◆ f64

double* ma_tensor_t::f64

◆ is_physical

bool ma_tensor_t::is_physical

◆ is_variable

bool ma_tensor_t::is_variable

◆ quant_param

ma_quant_param_t ma_tensor_t::quant_param

◆ s16

int16_t* ma_tensor_t::s16

◆ s32

int32_t* ma_tensor_t::s32

◆ s64

int64_t* ma_tensor_t::s64

◆ s8

int8_t* ma_tensor_t::s8

◆ shape

ma_shape_t ma_tensor_t::shape

◆ size

size_t ma_tensor_t::size

◆ type

ma_tensor_type_t ma_tensor_t::type

◆ u16

uint16_t* ma_tensor_t::u16

◆ u32

uint32_t* ma_tensor_t::u32

◆ u64

uint64_t* ma_tensor_t::u64

◆ u8

uint8_t* ma_tensor_t::u8