Matthew Sloyan | 080ffd8 | 2023-04-24 12:53:04 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2023 Arm Ltd and Contributors. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include <armnn_delegate.hpp> |
| 9 | |
| 10 | #include <tensorflow/lite/c/builtin_op_data.h> |
| 11 | |
| 12 | namespace armnnOpaqueDelegate |
| 13 | { |
| 14 | |
| 15 | TfLiteStatus ValidateFloorOperator(DelegateData& delegateData, |
| 16 | TfLiteOpaqueContext* tfLiteContext, |
| 17 | const armnn::TensorInfo& inputTensorInfo, |
| 18 | const armnn::TensorInfo& outputTensorInfo); |
| 19 | |
| 20 | TfLiteStatus ValidateFusedActivationOperator(DelegateData& delegateData, |
| 21 | TfLiteOpaqueContext* tfLiteContext, |
| 22 | const armnn::TensorInfo& inputInfo, |
| 23 | const armnn::TensorInfo& outputInfo, |
| 24 | TfLiteFusedActivation activationType); |
| 25 | |
Mike Kelly | 080d45d | 2023-11-10 17:11:53 +0000 | [diff] [blame] | 26 | TfLiteOpaqueNode* GetNodeConnectedToInput(TfLiteOpaqueContext* tfLiteContext, |
| 27 | int32_t& connectedIndex, |
| 28 | int32_t inputIdx); |
| 29 | |
| 30 | bool WillInputBeOptimizedToConst(TfLiteOpaqueContext* tfLiteContext, int32_t inputIdx); |
| 31 | |
Matthew Sloyan | 080ffd8 | 2023-04-24 12:53:04 +0100 | [diff] [blame] | 32 | } // namespace armnnOpaqueDelegate |
| 33 | |