# 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 ||
|---|---|
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1a0a529d9e09c05b17faffd61c07c52a54` | `bool *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1a923046bd67673a0ff89b022b6d918bd9` | `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-b-float16#struct_tf_lite_b_float16 *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1aae61e795a0c8d7e2b29ce2b03a0efa69` | `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-complex128#struct_tf_lite_complex128 *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1acc593362cafcbd03b15b6260738d7af8` | `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-complex64#struct_tf_lite_complex64 *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1a2045bb9cf02ac8b80a586f29b18d851b` | `void *` Only use this member. |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1ac8eb9281e0894ebe40a4c29765148bbb` | `float *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1a6360d848024571a502534aebfc266ea8` | `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-float16#struct_tf_lite_float16 *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1a866c09d481a90345f8f2ebe0d748d300` | `double *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1af53e67413285f91aabf2c8420a11a52a` | `int16_t *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1a2601f170ecd1335ea8211f98b5e46a9c` | `int32_t *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1af45bc91e8569cba73447247e1e210970` | `int64_t *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1a0bf74439fb3aa2e1ff978f90ae6e9763` | `int8_t *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1a6941a989f073e07710ec823a3424f57d` | `char *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1af381b6358aafa90f8d3bd75f2ec82b3b` | `const char *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1ac578fa5886fce9c561cee5030302347f` | `uint32_t *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1a7d20a91fbed9d53b44ecbc9aced1633f` | `uint64_t *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1a44ea6c217261de811235f7e72ebb6de6` | `uint16_t *` |
| `https://developers.google.com/edge/api/tflite/c/union/tf-lite-ptr-union#union_tf_lite_ptr_union_1add4c13ab4a368f46181e9ff84341b389` | `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
```