blob: 4698a1e9896426bd3019490ae304afa8ce88383b [file] [log] [blame]
Matthew Sloyan080ffd82023-04-24 12:53:04 +01001//
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
12namespace armnnOpaqueDelegate
13{
14
15TfLiteStatus ValidateFloorOperator(DelegateData& delegateData,
16 TfLiteOpaqueContext* tfLiteContext,
17 const armnn::TensorInfo& inputTensorInfo,
18 const armnn::TensorInfo& outputTensorInfo);
19
20TfLiteStatus ValidateFusedActivationOperator(DelegateData& delegateData,
21 TfLiteOpaqueContext* tfLiteContext,
22 const armnn::TensorInfo& inputInfo,
23 const armnn::TensorInfo& outputInfo,
24 TfLiteFusedActivation activationType);
25
Mike Kelly080d45d2023-11-10 17:11:53 +000026TfLiteOpaqueNode* GetNodeConnectedToInput(TfLiteOpaqueContext* tfLiteContext,
27 int32_t& connectedIndex,
28 int32_t inputIdx);
29
30bool WillInputBeOptimizedToConst(TfLiteOpaqueContext* tfLiteContext, int32_t inputIdx);
31
Matthew Sloyan080ffd82023-04-24 12:53:04 +010032} // namespace armnnOpaqueDelegate
33