Introducing Google AI Edge Portal: Benchmark Edge AI at scale. Sign-up to request access during private preview.

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(tensor) instead, otherwise only access .data, as other members are deprecated.

Public attributes

b
bool *
c128
c64
data
void *
Only use this member.
f
float *
f16
f64
double *
i16
int16_t *
i32
int32_t *
i64
int64_t *
int8
int8_t *
raw
char *
raw_const
const char *
u32
uint32_t *
u64
uint64_t *
ui16
uint16_t *
uint8
uint8_t *

Public attributes

b

bool * b

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

constchar*raw_const

u32

uint32_t * u32

u64

uint64_t * u64

ui16

uint16_t * ui16

uint8

uint8_t * uint8

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年05月10日 UTC.