#include "tensorflow/lite/core/async/async_subgraph.h"
#include <vector>
#include "tensorflow/lite/core/async/async_kernel_internal.h"
#include "tensorflow/lite/core/async/c/types.h"
#include "tensorflow/lite/core/async/task_internal.h"
#include "tensorflow/lite/core/c/c_api_types.h"
#include "tensorflow/lite/core/c/common.h"
#include "tensorflow/lite/core/subgraph.h"
#include "tensorflow/lite/logger.h"
#include "tensorflow/lite/minimal_logging.h"
namespace tflite {
namespace async {
namespace {
TfLiteAsyncKernel* GetAsyncKernel(TfLiteContext* context,
const TfLiteRegistration& op_reg,
TfLiteNode& node) { … }
}
Subgraph* AsyncSubgraph::subgraph() const { … }
TfLiteContext* AsyncSubgraph::context() const { … }
TfLiteOpaqueContext* AsyncSubgraph::opaque_context() const { … }
TfLiteAsyncKernel* AsyncSubgraph::async_kernel() const { … }
AsyncSubgraph::AsyncSubgraph(Subgraph* subgraph) : … { … }
bool AsyncSubgraph::IsFullyDelegated() const { … }
TfLiteStatus AsyncSubgraph::RegisterBuffer(TfLiteIoType io_type,
const TfLiteBackendBuffer* buffer,
const TfLiteAttributeMap* attrs,
TfLiteBufferHandle* handle) { … }
TfLiteStatus AsyncSubgraph::RegisterBufferSlice(TfLiteBufferHandle buffer_pool,
const TfLiteAttributeMap* attrs,
TfLiteBufferHandle* handle) { … }
TfLiteStatus AsyncSubgraph::UnregisterBuffer(TfLiteBufferHandle handle) { … }
const std::vector<const char*>& AsyncSubgraph::SupportedBufferTypes(
TfLiteIoType io_type) const { … }
const std::vector<const char*>& AsyncSubgraph::SupportedSynchronizations(
TfLiteIoType io_type) const { … }
bool AsyncSubgraph::ReconcileRestrictions(
int tensor_index, const TfLiteAttributeMap* user_provided_attributes,
TfLiteAttributeMap* merged, TfLiteAttributeMap* conflict) const { … }
TfLiteStatus AsyncSubgraph::SetAttributes(int tensor_index,
const TfLiteAttributeMap* attrs) { … }
TfLiteStatus AsyncSubgraph::SetBufferAttributes(
const TfLiteBackendBuffer* buffer, const TfLiteAttributeMap* attrs) { … }
TfLiteStatus AsyncSubgraph::GetBufferAttributes(
const TfLiteBackendBuffer* buffer, TfLiteAttributeMap* attrs) { … }
TfLiteStatus AsyncSubgraph::Prepare() { … }
TfLiteExecutionTask* AsyncSubgraph::CreateTask() { … }
TfLiteStatus AsyncSubgraph::InvokeAsync(TfLiteExecutionTask* task) { … }
TfLiteStatus AsyncSubgraph::Wait(TfLiteExecutionTask* task) { … }
TfLiteStatus AsyncSubgraph::Finish(TfLiteExecutionTask* task) { … }
}
}