# TfLiteCustomAllocation


`#include <common.h>`

Defines a custom memory allocation not owned by the runtime.

## Summary

`data` should be aligned to kDefaultTensorAlignment defined in lite/util.h. (Currently 64 bytes) NOTE: See `Interpreter::SetCustomAllocationForTensor` for details on usage.

| ### Public attributes ||
|---|---|
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-custom-allocation#struct_tf_lite_custom_allocation_1ac144cef6a7bf9b69f0ce3cb084028786` | `size_t` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-custom-allocation#struct_tf_lite_custom_allocation_1a88083398e4505b76dc2b55a413307bc1` | `void *` |

## Public attributes

### bytes

```
size_t TfLiteCustomAllocation::bytes
```

### data

```
void * TfLiteCustomAllocation::data
```