blob: 6c1d97ad87a8800b997b7ade4e6a75b7f230851c [file] [log] [blame]
Teresa Charlina52bca22024-02-01 17:36:48 +00001//
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
16arm_compute::experimental::dynamic_fusion::Conv2dAttributes
17CreateConv2dAttributes(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
22arm_compute::experimental::dynamic_fusion::DepthwiseConv2dAttributes
23CreateDWConv2dAttributes(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
29arm_compute::experimental::dynamic_fusion::Pool2dAttributes
30CreatePool2dAttributes(const armnn::Pooling2dDescriptor& descriptor);