#include <stddef.h>
#include <stdlib.h>
#include <cstdint>
#include <functional>
#include <memory>
#include <utility>
#include <vector>
#include "tensorflow/lite/c/common_internal.h"
#include "tensorflow/lite/core/api/profiler.h"
#include "tensorflow/lite/core/async/async_signature_runner.h"
#include "tensorflow/lite/core/c/c_api_types.h"
#include "tensorflow/lite/core/c/common.h"
#include "tensorflow/lite/core/interpreter.h"
#include "tensorflow/lite/core/subgraph.h"
#include "tensorflow/lite/interpreter_options.h"
#include "tensorflow/lite/profiling/root_profiler.h"
namespace tflite {
namespace {
static constexpr char kDefaultServingSignatureDefKey[] = …;
}
TfLiteStatus Interpreter::SetCustomAllocationForTensor(
int tensor_index, const TfLiteCustomAllocation& allocation, int64_t flags) { … }
TfLiteStatus Interpreter::ReleaseNonPersistentMemory() { … }
TfLiteStatus Interpreter::ResetVariableTensors() { … }
void Interpreter::SetAllowFp16PrecisionForFp32(bool allow) { … }
void Interpreter::SetCancellationFunction(void* data,
bool (*check_cancelled_func)(void*)) { … }
bool Interpreter::IsCancelled() { … }
TfLiteStatus Interpreter::ModifyGraphWithDelegate(TfLiteDelegate* delegate) { … }
TfLiteStatus Interpreter::ModifyGraphWithDelegate(
TfLiteOpaqueDelegateStruct* delegate) { … }
bool Interpreter::HasDelegates() { … }
TfLiteStatus Interpreter::SetBufferHandle(int tensor_index,
TfLiteBufferHandle buffer_handle,
TfLiteDelegate* delegate) { … }
TfLiteStatus Interpreter::SetBufferHandle(TfLiteTensor* tensor,
TfLiteBufferHandle buffer_handle,
TfLiteDelegate* delegate) { … }
TfLiteStatus Interpreter::GetBufferHandle(int tensor_index,
TfLiteBufferHandle* buffer_handle,
TfLiteDelegate** delegate) { … }
void Interpreter::SetProfiler(Profiler* profiler) { … }
void Interpreter::SetProfiler(std::unique_ptr<Profiler> profiler) { … }
void Interpreter::AddProfiler(Profiler* profiler) { … }
Profiler* Interpreter::GetProfiler() { … }
TfLiteStatus Interpreter::ApplyOptions(InterpreterOptions* options) { … }
async::AsyncSignatureRunner* Interpreter::GetAsyncSignatureRunner(
const char* signature_key) { … }
}