diff options
author | Pablo Marquez Tello <pablo.tello@arm.com> | 2022-05-26 14:19:39 +0100 |
---|---|---|
committer | Pablo Marquez Tello <pablo.tello@arm.com> | 2022-06-07 12:33:48 +0000 |
commit | d75cd8ac5de1a785712e2e23c735a0167d64dfa3 (patch) | |
tree | 4e07c3cb0b159e14596c5e47d677de5877ec6efc /src/cpu/kernels/CpuKernelSelectionTypes.h | |
parent | fe1b1f6d94c196f086122613277ff95062a7e834 (diff) | |
download | ComputeLibrary-d75cd8ac5de1a785712e2e23c735a0167d64dfa3.tar.gz |
Compute Hard-Swish with a Lookup table for qasymm8.
* Resolves COMPMID-5211
Change-Id: I5914f971d733174dae67e6b4c589f45c75733cf7
Signed-off-by: Pablo Marquez Tello <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7654
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/cpu/kernels/CpuKernelSelectionTypes.h')
-rw-r--r-- | src/cpu/kernels/CpuKernelSelectionTypes.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/cpu/kernels/CpuKernelSelectionTypes.h b/src/cpu/kernels/CpuKernelSelectionTypes.h index afcf014ad2..12542e5064 100644 --- a/src/cpu/kernels/CpuKernelSelectionTypes.h +++ b/src/cpu/kernels/CpuKernelSelectionTypes.h @@ -75,6 +75,14 @@ struct DepthwiseConv2dNativeDataTypeISASelectorData DataType source_dt; const cpuinfo::CpuIsaInfo &isa; }; + +struct ActivationDataTypeISASelectorData +{ + DataType dt; + const cpuinfo::CpuIsaInfo &isa; + ActivationLayerInfo::ActivationFunction f; +}; + // Selector pointer types using DataTypeISASelectorPtr = std::add_pointer<bool(const DataTypeISASelectorData &data)>::type; using DataTypeDataLayoutSelectorPtr = std::add_pointer<bool(const DataTypeDataLayoutISASelectorData &data)>::type; @@ -82,9 +90,10 @@ using PoolDataTypeISASelectorPtr = std::add_pointer<bool(const using ElementwiseDataTypeISASelectorPtr = std::add_pointer<bool(const ElementwiseDataTypeISASelectorData &data)>::type; using DepthwiseConv2dNativeDataTypeISASelectorPtr = std::add_pointer<bool(const DepthwiseConv2dNativeDataTypeISASelectorData &data)>::type; using CastDataTypeISASelectorDataPtr = std::add_pointer<bool(const CastDataTypeISASelectorData &data)>::type; +using ActivationDataTypeISASelectorDataPtr = std::add_pointer<bool(const ActivationDataTypeISASelectorData &data)>::type; } // namespace kernels } // namespace cpu } // namespace arm_compute -#endif // ARM_COMPUTE_CPU_KERNEL_SELECTION_TYPES_H
\ No newline at end of file +#endif // ARM_COMPUTE_CPU_KERNEL_SELECTION_TYPES_H |