24.04
ClDWCNativeDefaultConfigBifrost.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022 Arm Limited.
3
*
4
* SPDX-License-Identifier: MIT
5
*
6
* Permission is hereby granted, free of charge, to any person obtaining a copy
7
* of this software and associated documentation files (the "Software"), to
8
* deal in the Software without restriction, including without limitation the
9
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10
* sell copies of the Software, and to permit persons to whom the Software is
11
* furnished to do so, subject to the following conditions:
12
*
13
* The above copyright notice and this permission notice shall be included in all
14
* copies or substantial portions of the Software.
15
*
16
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
* SOFTWARE.
23
*/
24
#ifndef SRC_RUNTIME_HEURISTICS_DWC_NATIVE_CLDWCNATIVEDEFAULTCONFIGBIFROST
25
#define SRC_RUNTIME_HEURISTICS_DWC_NATIVE_CLDWCNATIVEDEFAULTCONFIGBIFROST
26
27
#include "
src/runtime/heuristics/dwc_native/IClDWCNativeKernelConfig.h
"
28
29
namespace
arm_compute
30
{
31
namespace
cl_dwc
32
{
33
/** Bifrost based OpenCL depthwise convolution configuration */
34
class
ClDWCNativeDefaultConfigBifrost
final :
public
IClDWCNativeKernelConfig
35
{
36
public
:
37
/** Constructor
38
*
39
* @param[in] gpu GPU target
40
*/
41
ClDWCNativeDefaultConfigBifrost
(
GPUTarget
gpu);
42
43
// Inherited overridden method
44
DWCComputeKernelInfo
configure
(
const
ITensorInfo
*
src
,
45
const
ITensorInfo
*wei,
46
const
PadStrideInfo
&
conv_info
,
47
const
Size2D
&dilation,
48
unsigned
int
depth_multiplier)
override
;
49
50
private
:
51
DWCComputeKernelInfo
configure_G71_f32(
const
ITensorInfo
*
src
,
52
const
ITensorInfo
*wei,
53
const
PadStrideInfo
&
conv_info
,
54
const
Size2D
&dilation,
55
unsigned
int
depth_multiplier);
56
DWCComputeKernelInfo
configure_G71_f16(
const
ITensorInfo
*
src
,
57
const
ITensorInfo
*wei,
58
const
PadStrideInfo
&
conv_info
,
59
const
Size2D
&dilation,
60
unsigned
int
depth_multiplier);
61
DWCComputeKernelInfo
configure_G7x_f32(
const
ITensorInfo
*
src
,
62
const
ITensorInfo
*wei,
63
const
PadStrideInfo
&
conv_info
,
64
const
Size2D
&dilation,
65
unsigned
int
depth_multiplier);
66
DWCComputeKernelInfo
configure_G7x_f16(
const
ITensorInfo
*
src
,
67
const
ITensorInfo
*wei,
68
const
PadStrideInfo
&
conv_info
,
69
const
Size2D
&dilation,
70
unsigned
int
depth_multiplier);
71
DWCComputeKernelInfo
configure_G7x_u8(
const
ITensorInfo
*
src
,
72
const
ITensorInfo
*wei,
73
const
PadStrideInfo
&
conv_info
,
74
const
Size2D
&dilation,
75
unsigned
int
depth_multiplier);
76
};
77
}
// namespace cl_dwc
78
}
// namespace arm_compute
79
#endif
/* SRC_RUNTIME_HEURISTICS_DWC_NATIVE_CLDWCNATIVEDEFAULTCONFIGBIFROST */
arm_compute::test::validation::src
SimpleTensor< float > src
Definition:
DFT.cpp:155
arm_compute::Size2D
Class for specifying the size of an image or rectangle.
Definition:
Size2D.h:34
arm_compute::cl_dwc::ClDWCNativeDefaultConfigBifrost::ClDWCNativeDefaultConfigBifrost
ClDWCNativeDefaultConfigBifrost(GPUTarget gpu)
Constructor.
Definition:
ClDWCNativeDefaultConfigBifrost.cpp:208
arm_compute::cl_dwc::IClDWCNativeKernelConfig
Basic interface for the depthwise convolution kernel configuration.
Definition:
IClDWCNativeKernelConfig.h:88
arm_compute::PadStrideInfo
Definition:
CoreTypes.h:139
arm_compute::GPUTarget
GPUTarget
Available GPU Targets.
Definition:
GPUTarget.h:34
arm_compute::cl_dwc::ClDWCNativeDefaultConfigBifrost
Bifrost based OpenCL depthwise convolution configuration.
Definition:
ClDWCNativeDefaultConfigBifrost.h:34
arm_compute
Copyright (c) 2017-2024 Arm Limited.
Definition:
introduction.dox:24
arm_compute::test::validation::conv_info
conv_info
Definition:
DirectConvolutionLayer.cpp:547
arm_compute::cl_dwc::ClDWCNativeDefaultConfigBifrost::configure
DWCComputeKernelInfo configure(const ITensorInfo *src, const ITensorInfo *wei, const PadStrideInfo &conv_info, const Size2D &dilation, unsigned int depth_multiplier) override
This method returns the DWCComputeKernelInfo for the given inputs.
Definition:
ClDWCNativeDefaultConfigBifrost.cpp:212
arm_compute::DWCComputeKernelInfo
Compute descriptor used by the depthwise convolution native kernel.
Definition:
KernelDescriptors.h:115
arm_compute::ITensorInfo
Store the tensor's metadata.
Definition:
ITensorInfo.h:44
IClDWCNativeKernelConfig.h
src
runtime
heuristics
dwc_native
ClDWCNativeDefaultConfigBifrost.h
Generated on Mon Apr 29 2024 10:54:00 for Compute Library by
1.8.17