tensorflow/lite/g3doc/api_docs/cc/class/tflite/allocation.html
This is an abstract class.
#include <allocation.h>
A memory allocation handle. This could be a mmap or shared memory.
Direct Known Subclasses:tflite::FileCopyAllocation, tflite::MemoryAllocation, tflite::MMAPAllocation
|
|
| --- |
| ~Allocation()
|
|
|
| --- |
| Type | enum |
|
|
| --- |
| error_reporter_ |
ErrorReporter *
|
|
|
| --- |
| base() const =0 |
virtual const void *
Base pointer of this allocation.
|
| bytes() const =0 |
virtual size_t
Size in bytes of the allocation.
|
| type() const |
Type
Return the type of the Allocation.
|
| valid() const =0 |
virtual bool
Whether the allocation is valid. |
|
|
| --- |
| Allocation(ErrorReporter *error_reporter, Type type) |
``
|
Type
[ErrorReporter](/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter)* error_reporter_
virtual const void * base() const =0
Base pointer of this allocation.
virtual size_t bytes() const =0
Size in bytes of the allocation.
Type type() const
Return the type of the Allocation.
virtual bool valid() const =0
Whether the allocation is valid.
virtual ~Allocation()
Allocation([ErrorReporter](/lite/api_docs/cc/class/tflite/error-reporter.html#classtflite_1_1_error_reporter)*error_reporter,
Type type
)