From 080ffd84eccb4b849c192155c0ba39431d53c894 Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Mon, 24 Apr 2023 12:53:04 +0100 Subject: IVGCVSW-7584 Implement Conv2d and DepthwiseConv2d operators for Opaque Delegate * Added VisitConvolution2d and VisitDepthwiseConv2d functions to Convolution2d.hpp. * Enabled Convolution2d and DepthwiseConv2d tests. * Moved TransposeConvolution2d tests to separate file. * Added Opaque Delegate shared functions. Signed-off-by: Matthew Sloyan Change-Id: Ica10c9469fc830f512edad1ad79884f90ae511d0 --- delegate/opaque/src/SharedFunctions.hpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 delegate/opaque/src/SharedFunctions.hpp (limited to 'delegate/opaque/src/SharedFunctions.hpp') diff --git a/delegate/opaque/src/SharedFunctions.hpp b/delegate/opaque/src/SharedFunctions.hpp new file mode 100644 index 0000000000..72fbe6a332 --- /dev/null +++ b/delegate/opaque/src/SharedFunctions.hpp @@ -0,0 +1,27 @@ +// +// Copyright © 2023 Arm Ltd and Contributors. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include + +#include + +namespace armnnOpaqueDelegate +{ + +TfLiteStatus ValidateFloorOperator(DelegateData& delegateData, + TfLiteOpaqueContext* tfLiteContext, + const armnn::TensorInfo& inputTensorInfo, + const armnn::TensorInfo& outputTensorInfo); + +TfLiteStatus ValidateFusedActivationOperator(DelegateData& delegateData, + TfLiteOpaqueContext* tfLiteContext, + const armnn::TensorInfo& inputInfo, + const armnn::TensorInfo& outputInfo, + TfLiteFusedActivation activationType); + +} // namespace armnnOpaqueDelegate + -- cgit v1.2.1