Back to Tensorflow

TfLitePtrUnion

tensorflow/lite/g3doc/api_docs/c/union/tf-lite-ptr-union.html

2.21.01.6 KB
Original Source

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 | TfLiteComplex128 * | | c64 | TfLiteComplex64 * | | data | void *

Only use this member. | | f | float * | | f16 | TfLiteFloat16 * | | 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](/lite/api_docs/c/struct/tf-lite-complex128.html#struct_tf_lite_complex128)* c128

c64

[TfLiteComplex64](/lite/api_docs/c/struct/tf-lite-complex64.html#struct_tf_lite_complex64)* c64

data

void * data

Only use this member.

f

float * f

f16

[TfLiteFloat16](/lite/api_docs/c/struct/tf-lite-float16.html#struct_tf_lite_float16)* 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