aboutsummaryrefslogtreecommitdiff
path: root/src/backends/gpuFsa/layers/UtilsGpuFsa.hpp
blob: 2dbf363f93cab019446113201fbf00d4670e2fe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// Copyright © 2023-2024 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//

#pragma once

#include "armnn/Descriptors.hpp"
#include "arm_compute/dynamic_fusion/sketch/attributes/Conv2dAttributes.h"
#include "arm_compute/dynamic_fusion/sketch/attributes/DepthwiseConv2dAttributes.h"
#include "arm_compute/dynamic_fusion/sketch/attributes/Pool2dAttributes.h"
#include "arm_compute/dynamic_fusion/sketch/attributes/ResizeAttributes.h"

/// Utility function used to setup an arm_compute::Conv2dAttributes object from given descriptor
/// @param[in] armnn::Convolution2dDescriptor
/// @return arm_compute::experimental::dynamic_fusion::Conv2dAttributes
arm_compute::experimental::dynamic_fusion::Conv2dAttributes
CreateConv2dAttributes(const armnn::Convolution2dDescriptor& descriptor);

/// Utility function used to setup an arm_compute::DepthwiseConv2dAttributes object from given descriptor
/// @param[in] armnn::DepthwiseConvolution2dDescriptor
/// @return arm_compute::experimental::dynamic_fusion::DepthwiseConv2dAttributes
arm_compute::experimental::dynamic_fusion::DepthwiseConv2dAttributes
CreateDWConv2dAttributes(const armnn::DepthwiseConvolution2dDescriptor& descriptor, 
                         const unsigned int aclDepthMultiplier);

/// Utility function used to setup an arm_compute::Pool2dAttributes object from given descriptor
/// @param[in] armnn::Pooling2dDescriptor
/// @return arm_compute::experimental::dynamic_fusion::Pool2dAttributes
arm_compute::experimental::dynamic_fusion::Pool2dAttributes
CreatePool2dAttributes(const armnn::Pooling2dDescriptor& descriptor);

/// Utility function used to setup an arm_compute::ResizeDescriptor object from given descriptor
/// @param[in] armnn::ResizeDescriptor
/// @return arm_compute::experimental::dynamic_fusion::ResizeAttributes
arm_compute::experimental::dynamic_fusion::ResizeAttributes
CreateResizeAttributes(const armnn::ResizeDescriptor& descriptor);