Teresa Charlin | a52bca2 | 2024-02-01 17:36:48 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2023-2024 Arm Ltd and Contributors. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include "armnn/Descriptors.hpp" |
| 9 | #include "arm_compute/dynamic_fusion/sketch/attributes/Conv2dAttributes.h" |
| 10 | #include "arm_compute/dynamic_fusion/sketch/attributes/DepthwiseConv2dAttributes.h" |
| 11 | #include "arm_compute/dynamic_fusion/sketch/attributes/Pool2dAttributes.h" |
| 12 | |
| 13 | /// Utility function used to setup an arm_compute::Conv2dAttributes object from given descriptor |
| 14 | /// @param[in] armnn::Convolution2dDescriptor |
| 15 | /// @return arm_compute::experimental::dynamic_fusion::Conv2dAttributes |
| 16 | arm_compute::experimental::dynamic_fusion::Conv2dAttributes |
| 17 | CreateConv2dAttributes(const armnn::Convolution2dDescriptor& descriptor); |
| 18 | |
| 19 | /// Utility function used to setup an arm_compute::DepthwiseConv2dAttributes object from given descriptor |
| 20 | /// @param[in] armnn::DepthwiseConvolution2dDescriptor |
| 21 | /// @return arm_compute::experimental::dynamic_fusion::DepthwiseConv2dAttributes |
| 22 | arm_compute::experimental::dynamic_fusion::DepthwiseConv2dAttributes |
| 23 | CreateDWConv2dAttributes(const armnn::DepthwiseConvolution2dDescriptor& descriptor, |
| 24 | const unsigned int aclDepthMultiplier); |
| 25 | |
| 26 | /// Utility function used to setup an arm_compute::Pool2dAttributes object from given descriptor |
| 27 | /// @param[in] armnn::Pooling2dDescriptor |
| 28 | /// @return arm_compute::experimental::dynamic_fusion::Pool2dAttributes |
| 29 | arm_compute::experimental::dynamic_fusion::Pool2dAttributes |
| 30 | CreatePool2dAttributes(const armnn::Pooling2dDescriptor& descriptor); |