Compute Library
 23.08
CpuKernelSelectionTypes.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021-2023 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 ARM_COMPUTE_CPU_KERNEL_SELECTION_TYPES_H
25 #define ARM_COMPUTE_CPU_KERNEL_SELECTION_TYPES_H
26 
27 #include "arm_compute/core/Types.h"
29 
30 namespace arm_compute
31 {
32 namespace cpu
33 {
34 namespace kernels
35 {
36 // Selector data types
38 {
41 };
42 
44 {
48 };
49 
51 {
55 };
56 
58 {
64 };
65 
67 {
70  int op;
71 };
73 {
77 };
78 
80 {
85 };
86 
88 {
92 };
93 
95 {
99 };
100 
101 // Selector pointer types
102 using DataTypeISASelectorPtr = std::add_pointer<bool(const DataTypeISASelectorData &data)>::type;
103 using DataTypeDataLayoutSelectorPtr = std::add_pointer<bool(const DataTypeDataLayoutISASelectorData &data)>::type;
104 using PoolDataTypeISASelectorPtr = std::add_pointer<bool(const PoolDataTypeISASelectorData &data)>::type;
107 using CastDataTypeISASelectorDataPtr = std::add_pointer<bool(const CastDataTypeISASelectorData &data)>::type;
111 
112 } // namespace kernels
113 } // namespace cpu
114 } // namespace arm_compute
115 
116 #endif // ARM_COMPUTE_CPU_KERNEL_SELECTION_TYPES_H
arm_compute::cpu::kernels::ElementwiseDataTypeISASelectorData::op
int op
Definition: CpuKernelSelectionTypes.h:70
arm_compute::cpu::kernels::DataTypeISASelectorData::dt
DataType dt
Definition: CpuKernelSelectionTypes.h:39
arm_compute::cpu::kernels::DataTypeDataLayoutISASelectorData::dt
DataType dt
Definition: CpuKernelSelectionTypes.h:45
arm_compute::cpuinfo::CpuIsaInfo
CPU ISA (Instruction Set Architecture) information.
Definition: CpuIsaInfo.h:37
arm_compute::cpu::kernels::DataTypeISASelectorData::isa
cpuinfo::CpuIsaInfo isa
Definition: CpuKernelSelectionTypes.h:40
type
decltype(strategy::transforms) typedef type
Definition: gemm_interleaved.hpp:261
arm_compute::cpu::kernels::CastDataTypeISASelectorData::isa
const cpuinfo::CpuIsaInfo & isa
Definition: CpuKernelSelectionTypes.h:54
arm_compute::DataLayout
DataLayout
[DataLayout enum definition]
Definition: CoreTypes.h:109
arm_compute::CPUModel
CPUModel
CPU models types.
Definition: CPPTypes.h:59
arm_compute::cpu::kernels::ActivationDataTypeISASelectorDataPtr
std::add_pointer< bool(const ActivationDataTypeISASelectorData &data)>::type ActivationDataTypeISASelectorDataPtr
Definition: CpuKernelSelectionTypes.h:108
arm_compute::cpu::kernels::DepthwiseConv2dNativeDataTypeISASelectorPtr
std::add_pointer< bool(const DepthwiseConv2dNativeDataTypeISASelectorData &data)>::type DepthwiseConv2dNativeDataTypeISASelectorPtr
Definition: CpuKernelSelectionTypes.h:106
arm_compute::cpu::kernels::DepthwiseConv2dNativeDataTypeISASelectorData::source_dt
DataType source_dt
Definition: CpuKernelSelectionTypes.h:75
arm_compute::cpu::kernels::CpuAddKernelDataTypeISASelectorData::dt
DataType dt
Definition: CpuKernelSelectionTypes.h:89
arm_compute::cpu::kernels::PoolDataTypeISASelectorData::pool_size
Size2D pool_size
Definition: CpuKernelSelectionTypes.h:62
Types.h
arm_compute::cpu::kernels::ScaleKernelDataTypeISASelectorDataPtr
std::add_pointer< bool(const ScaleKernelDataTypeISASelectorData &data)>::type ScaleKernelDataTypeISASelectorDataPtr
Definition: CpuKernelSelectionTypes.h:110
arm_compute::cpu::kernels::DepthwiseConv2dNativeDataTypeISASelectorData::isa
const cpuinfo::CpuIsaInfo & isa
Definition: CpuKernelSelectionTypes.h:76
arm_compute::Size2D
Class for specifying the size of an image or rectangle.
Definition: Size2D.h:34
arm_compute::InterpolationPolicy
InterpolationPolicy
Interpolation method.
Definition: Types.h:371
arm_compute::cpu::kernels::ActivationDataTypeISASelectorData::f
const ActivationFunction f
Definition: CpuKernelSelectionTypes.h:84
arm_compute::cpu::kernels::PoolDataTypeISASelectorData::pool_stride_x
int pool_stride_x
Definition: CpuKernelSelectionTypes.h:61
arm_compute::cpu::kernels::CpuAddKernelDataTypeISASelectorData
Definition: CpuKernelSelectionTypes.h:87
arm_compute::cpu::kernels::CpuAddKernelDataTypeISASelectorData::can_use_fixedpoint
bool can_use_fixedpoint
Definition: CpuKernelSelectionTypes.h:91
arm_compute::cpu::kernels::ActivationDataTypeISASelectorData::dt
DataType dt
Definition: CpuKernelSelectionTypes.h:81
CpuIsaInfo.h
arm_compute::cpu::kernels::ScaleKernelDataTypeISASelectorData::interpolation_policy
InterpolationPolicy interpolation_policy
Definition: CpuKernelSelectionTypes.h:98
arm_compute::cpu::kernels::DepthwiseConv2dNativeDataTypeISASelectorData::weights_dt
DataType weights_dt
Definition: CpuKernelSelectionTypes.h:74
arm_compute::cpu::kernels::CastDataTypeISASelectorData
Definition: CpuKernelSelectionTypes.h:50
arm_compute::cpu::kernels::ElementwiseDataTypeISASelectorData::isa
cpuinfo::CpuIsaInfo isa
Definition: CpuKernelSelectionTypes.h:69
arm_compute::ActivationFunction
ActivationFunction
Available activation functions.
Definition: ActivationLayerInfo.h:35
arm_compute::cpu::kernels::CastDataTypeISASelectorDataPtr
std::add_pointer< bool(const CastDataTypeISASelectorData &data)>::type CastDataTypeISASelectorDataPtr
Definition: CpuKernelSelectionTypes.h:107
arm_compute::cpu::kernels::ScaleKernelDataTypeISASelectorData::dt
DataType dt
Definition: CpuKernelSelectionTypes.h:96
arm_compute::cpu::kernels::DepthwiseConv2dNativeDataTypeISASelectorData
Definition: CpuKernelSelectionTypes.h:72
arm_compute::cpu::kernels::ActivationDataTypeISASelectorData::isa
const cpuinfo::CpuIsaInfo & isa
Definition: CpuKernelSelectionTypes.h:83
arm_compute::cpu::kernels::DataTypeDataLayoutISASelectorData::dl
DataLayout dl
Definition: CpuKernelSelectionTypes.h:46
arm_compute::cpu::kernels::DataTypeISASelectorPtr
std::add_pointer< bool(const DataTypeISASelectorData &data)>::type DataTypeISASelectorPtr
Definition: CpuKernelSelectionTypes.h:102
arm_compute::cpu::kernels::DataTypeDataLayoutISASelectorData::isa
const cpuinfo::CpuIsaInfo & isa
Definition: CpuKernelSelectionTypes.h:47
arm_compute::cpu::kernels::PoolDataTypeISASelectorData::dt
DataType dt
Definition: CpuKernelSelectionTypes.h:59
arm_compute::cpu::kernels::CastDataTypeISASelectorData::src_dt
DataType src_dt
Definition: CpuKernelSelectionTypes.h:52
arm_compute::cpu::kernels::ElementwiseDataTypeISASelectorData::dt
DataType dt
Definition: CpuKernelSelectionTypes.h:68
arm_compute::cpu::kernels::ActivationDataTypeISASelectorData::cpumodel
const CPUModel & cpumodel
Definition: CpuKernelSelectionTypes.h:82
arm_compute::cpu::kernels::ScaleKernelDataTypeISASelectorData::isa
cpuinfo::CpuIsaInfo isa
Definition: CpuKernelSelectionTypes.h:97
arm_compute::cpu::kernels::PoolDataTypeISASelectorData::dl
DataLayout dl
Definition: CpuKernelSelectionTypes.h:60
arm_compute::cpu::kernels::ScaleKernelDataTypeISASelectorData
Definition: CpuKernelSelectionTypes.h:94
arm_compute
Copyright (c) 2017-2023 Arm Limited.
Definition: introduction.dox:24
arm_compute::cpu::kernels::DataTypeISASelectorData
Definition: CpuKernelSelectionTypes.h:37
arm_compute::cpu::kernels::ElementwiseDataTypeISASelectorData
Definition: CpuKernelSelectionTypes.h:66
arm_compute::cpu::kernels::ActivationDataTypeISASelectorData
Definition: CpuKernelSelectionTypes.h:79
arm_compute::cpu::kernels::PoolDataTypeISASelectorPtr
std::add_pointer< bool(const PoolDataTypeISASelectorData &data)>::type PoolDataTypeISASelectorPtr
Definition: CpuKernelSelectionTypes.h:104
arm_compute::cpu::kernels::PoolDataTypeISASelectorData::isa
cpuinfo::CpuIsaInfo isa
Definition: CpuKernelSelectionTypes.h:63
arm_compute::cpu::kernels::CpuAddKernelDataTypeISASelectorDataPtr
std::add_pointer< bool(const CpuAddKernelDataTypeISASelectorData &data)>::type CpuAddKernelDataTypeISASelectorDataPtr
Definition: CpuKernelSelectionTypes.h:109
arm_compute::cpu::kernels::PoolDataTypeISASelectorData
Definition: CpuKernelSelectionTypes.h:57
arm_compute::cpu::kernels::DataTypeDataLayoutSelectorPtr
std::add_pointer< bool(const DataTypeDataLayoutISASelectorData &data)>::type DataTypeDataLayoutSelectorPtr
Definition: CpuKernelSelectionTypes.h:103
arm_compute::cpu::kernels::CpuAddKernelDataTypeISASelectorData::isa
cpuinfo::CpuIsaInfo isa
Definition: CpuKernelSelectionTypes.h:90
arm_compute::cpu::kernels::DataTypeDataLayoutISASelectorData
Definition: CpuKernelSelectionTypes.h:43
arm_compute::cpu::kernels::ElementwiseDataTypeISASelectorPtr
std::add_pointer< bool(const ElementwiseDataTypeISASelectorData &data)>::type ElementwiseDataTypeISASelectorPtr
Definition: CpuKernelSelectionTypes.h:105
arm_compute::DataType
DataType
Available data types.
Definition: CoreTypes.h:82
arm_compute::cpu::kernels::CastDataTypeISASelectorData::dst_dt
DataType dst_dt
Definition: CpuKernelSelectionTypes.h:53