diff options
author | Matthew Sloyan <matthew.sloyan@arm.com> | 2023-04-24 12:53:04 +0100 |
---|---|---|
committer | Matthew Sloyan <matthew.sloyan@arm.com> | 2023-04-24 18:03:44 +0100 |
commit | 080ffd84eccb4b849c192155c0ba39431d53c894 (patch) | |
tree | b6ef09a3c5139ff900f627fc45d665c7e78401b9 /delegate/opaque/src/SharedFunctions.hpp | |
parent | 1ffbaac882792f166357ecf388667e8405c69966 (diff) | |
download | armnn-080ffd84eccb4b849c192155c0ba39431d53c894.tar.gz |
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 <matthew.sloyan@arm.com>
Change-Id: Ica10c9469fc830f512edad1ad79884f90ae511d0
Diffstat (limited to 'delegate/opaque/src/SharedFunctions.hpp')
-rw-r--r-- | delegate/opaque/src/SharedFunctions.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
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 <armnn_delegate.hpp> + +#include <tensorflow/lite/c/builtin_op_data.h> + +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 + |