Back to Tensorflow

TfLiteCustomAllocation

tensorflow/lite/g3doc/api_docs/c/struct/tf-lite-custom-allocation.html

2.21.0514 B
Original Source

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

| | --- | | bytes | size_t | | data | void * |

Public attributes

bytes

size_t TfLiteCustomAllocation::bytes

data

void * TfLiteCustomAllocation::data