chromium/third_party/tflite/src/tensorflow/lite/core/async/async_subgraph.cc

/* Copyright 2022 The TensorFlow Authors. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#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) {}

}  // namespace

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) {}

}  // namespace async
}  // namespace tflite