#include "tensorflow/lite/allocation.h"
#include <stddef.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <memory>
#include "tensorflow/lite/core/api/error_reporter.h"
namespace tflite {
#ifndef TFLITE_MCU
FileCopyAllocation::FileCopyAllocation(const char* filename,
ErrorReporter* error_reporter)
: … { … }
FileCopyAllocation::~FileCopyAllocation() { … }
const void* FileCopyAllocation::base() const { … }
size_t FileCopyAllocation::bytes() const { … }
bool FileCopyAllocation::valid() const { … }
#endif
MemoryAllocation::MemoryAllocation(const void* ptr, size_t num_bytes,
ErrorReporter* error_reporter)
: … { … }
MemoryAllocation::~MemoryAllocation() { … }
const void* MemoryAllocation::base() const { … }
size_t MemoryAllocation::bytes() const { … }
bool MemoryAllocation::valid() const { … }
}