TfLitePtrUnion
#include <common.h>
A union of pointers that points to memory for a given tensor.
Summary
Do not access these members directly, if possible, use GetTensorData
instead, otherwise only access .data
, as other members are deprecated.
Public attributes
bool *
void *
Only use this member.
float *
double *
int16_t *
int32_t *
int64_t *
int8_t *
char *
const char *
uint32_t *
uint64_t *
uint16_t *
uint8_t *
Public attributes
b
bool * b
bf16
TfLiteBFloat16 * bf16
c128
TfLiteComplex128 * c128
c64
TfLiteComplex64 * c64
data
void * data
Only use this member.
f
float * f
f16
TfLiteFloat16 * f16
f64
double * f64
i16
int16_t * i16
i32
int32_t * i32
i64
int64_t * i64
int8
int8_t * int8
raw
char * raw
raw_const
const char * raw_const
u32
uint32_t * u32
u64
uint64_t * u64
ui16
uint16_t * ui16
uint8
uint8_t * uint8

