giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 1 | /* |
Giorgio Arena | 5ae8d80 | 2021-11-18 18:02:13 +0000 | [diff] [blame] | 2 | * Copyright (c) 2021-2022 Arm Limited. |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 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 |
George Wort | d88590f | 2018-12-12 17:39:58 +0000 | [diff] [blame] | 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
George Wort | d88590f | 2018-12-12 17:39:58 +0000 | [diff] [blame] | 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 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 | */ |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 24 | #ifndef ARM_COMPUTE_CPU_ELEMENTWISE_KERNEL_H |
| 25 | #define ARM_COMPUTE_CPU_ELEMENTWISE_KERNEL_H |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 26 | |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 27 | #include "src/core/common/Macros.h" |
Georgios Pinitas | 7891a73 | 2021-08-20 21:39:25 +0100 | [diff] [blame] | 28 | #include "src/cpu/ICpuKernel.h" |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 29 | |
| 30 | namespace arm_compute |
| 31 | { |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 32 | namespace cpu |
| 33 | { |
| 34 | namespace kernels |
| 35 | { |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 36 | /** Interface for an element-wise operation kernel |
| 37 | * |
| 38 | * Element-wise operation is computed by: |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 39 | * @f[ dst(x,y) = OP(src0(x,y), src1(x,y))@f] |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 40 | * |
| 41 | */ |
Dana Zlotnik | 6a2df88 | 2022-01-17 09:54:26 +0200 | [diff] [blame] | 42 | template <class Derived> |
| 43 | class CpuElementwiseKernel : public ICpuKernel<Derived> |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 44 | { |
Dana Zlotnik | 6a2df88 | 2022-01-17 09:54:26 +0200 | [diff] [blame] | 45 | private: |
| 46 | using ElementwiseKernelPtr = std::add_pointer<void(const ITensor *, const ITensor *, ITensor *, const Window &)>::type; |
| 47 | |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 48 | public: |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 49 | CpuElementwiseKernel() = default; |
| 50 | ARM_COMPUTE_DISALLOW_COPY_ALLOW_MOVE(CpuElementwiseKernel); |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 51 | |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 52 | using ElementwiseFunction = void(const ITensor *, const ITensor *, ITensor *, const Window &); |
Michalis Spyrou | ce0c675 | 2020-06-18 10:14:57 +0100 | [diff] [blame] | 53 | // Inherited methods overridden: |
Georgios Pinitas | 0499dff | 2020-07-31 22:21:38 +0100 | [diff] [blame] | 54 | void run_op(ITensorPack &tensors, const Window &window, const ThreadInfo &info) override; |
Dana Zlotnik | 6a2df88 | 2022-01-17 09:54:26 +0200 | [diff] [blame] | 55 | |
Georgios Pinitas | 5fdde99 | 2021-06-25 05:42:57 +0100 | [diff] [blame] | 56 | const char *name() const override; |
Michalis Spyrou | ce0c675 | 2020-06-18 10:14:57 +0100 | [diff] [blame] | 57 | |
Dana Zlotnik | 6a2df88 | 2022-01-17 09:54:26 +0200 | [diff] [blame] | 58 | struct ElementwiseKernel |
| 59 | { |
| 60 | const char *name; |
| 61 | const ElementwiseDataTypeISASelectorPtr is_selected; |
| 62 | ElementwiseKernelPtr ukernel; |
| 63 | }; |
| 64 | |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 65 | protected: |
| 66 | /** Validate the argument passed to the kernel |
| 67 | * |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 68 | * @param[in] src0 First tensor input. Data types supported: QASYMM8/S16/F16/S32/F32. |
| 69 | * @param[in] src1 Second tensor input. Data types supported: Same as @p src0. |
| 70 | * @param[in] dst Output tensor. Data types supported: Dependent on subclass. |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 71 | */ |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 72 | static Status validate_arguments_common(const ITensorInfo &src0, const ITensorInfo &src1, const ITensorInfo &dst); |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 73 | |
Georgios Pinitas | 5fdde99 | 2021-06-25 05:42:57 +0100 | [diff] [blame] | 74 | protected: |
Fadi Arafeh | 73bb6b7 | 2022-10-06 16:20:14 +0000 | [diff] [blame] | 75 | ElementwiseKernelPtr _run_method{ nullptr }; |
| 76 | std::string _name{}; |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 77 | }; |
| 78 | |
Dana Zlotnik | 6a2df88 | 2022-01-17 09:54:26 +0200 | [diff] [blame] | 79 | class CpuArithmeticKernel : public CpuElementwiseKernel<CpuArithmeticKernel> |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 80 | { |
| 81 | public: |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 82 | CpuArithmeticKernel() = default; |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 83 | |
Georgios Pinitas | 1813422 | 2020-09-03 21:00:23 +0100 | [diff] [blame] | 84 | /** Configure kernel |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 85 | * |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 86 | * @param[in] op Arithmetic operation to be executed. |
| 87 | * @param[in] src0 First tensor input info. Data types supported: QASYMM8/S16/F16/S32/F32. |
| 88 | * @param[in] src1 Second tensor input info. Data types supported: Same as @p src0. |
| 89 | * @param[out] dst Output tensor info. Data types supported: Same as @p src0. |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 90 | */ |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 91 | void configure(ArithmeticOperation op, const ITensorInfo *src0, const ITensorInfo *src1, ITensorInfo *dst); |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 92 | |
Georgios Pinitas | 5fdde99 | 2021-06-25 05:42:57 +0100 | [diff] [blame] | 93 | /** Static function to check if given info will lead to a valid configuration |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 94 | * |
Georgios Pinitas | 5fdde99 | 2021-06-25 05:42:57 +0100 | [diff] [blame] | 95 | * Similar to CpuArithmeticKernel::configure() |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 96 | * |
Georgios Pinitas | 5fdde99 | 2021-06-25 05:42:57 +0100 | [diff] [blame] | 97 | * @return a status |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 98 | */ |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 99 | static Status validate(ArithmeticOperation op, const ITensorInfo *src0, const ITensorInfo *src1, const ITensorInfo *dst); |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 100 | |
Dana Zlotnik | 6a2df88 | 2022-01-17 09:54:26 +0200 | [diff] [blame] | 101 | static const std::vector<CpuElementwiseKernel<CpuArithmeticKernel>::ElementwiseKernel> &get_available_kernels(); |
| 102 | |
Fadi Arafeh | 73bb6b7 | 2022-10-06 16:20:14 +0000 | [diff] [blame] | 103 | /** Return minimum workload size of the relevant kernel |
| 104 | * |
| 105 | * @param[in] platform The CPU platform used to create the context. |
| 106 | * @param[in] thread_count Number of threads in the execution. |
| 107 | * |
| 108 | * @return[out] mws Minimum workload size for requested configuration. |
| 109 | */ |
| 110 | size_t get_mws(const CPUInfo &platform, size_t thread_count) const override; |
| 111 | |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 112 | protected: |
Dana Zlotnik | 6a2df88 | 2022-01-17 09:54:26 +0200 | [diff] [blame] | 113 | /** Commmon configure function for element-wise operators with no additional options (e.g. Min, Max, SquaredDiff) |
| 114 | */ |
| 115 | void configure_common(const ITensorInfo *src0, const ITensorInfo *src1, ITensorInfo *dst); |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 116 | // Inherited methods overridden: |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 117 | static Status validate_arguments(const ITensorInfo &src0, const ITensorInfo &src1, const ITensorInfo &dst); |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 118 | |
| 119 | ArithmeticOperation _op{}; |
George Wort | d88590f | 2018-12-12 17:39:58 +0000 | [diff] [blame] | 120 | }; |
| 121 | |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 122 | class CpuDivisionKernel : public CpuArithmeticKernel |
George Wort | a1e7e28 | 2019-01-15 11:00:29 +0000 | [diff] [blame] | 123 | { |
| 124 | public: |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 125 | CpuDivisionKernel() = default; |
George Wort | a1e7e28 | 2019-01-15 11:00:29 +0000 | [diff] [blame] | 126 | |
Georgios Pinitas | 1813422 | 2020-09-03 21:00:23 +0100 | [diff] [blame] | 127 | /** Configure kernel |
George Wort | a1e7e28 | 2019-01-15 11:00:29 +0000 | [diff] [blame] | 128 | * |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 129 | * @param[in] src0 First tensor input info. Data types supported: S32/F16/F32. |
| 130 | * @param[in] src1 Second tensor input info. Data types supported: Same as @p src0. |
| 131 | * @param[out] dst Output tensor info. Data types supported: Same as @p src0. |
George Wort | a1e7e28 | 2019-01-15 11:00:29 +0000 | [diff] [blame] | 132 | */ |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 133 | void configure(const ITensorInfo *src0, const ITensorInfo *src1, ITensorInfo *dst); |
George Wort | a1e7e28 | 2019-01-15 11:00:29 +0000 | [diff] [blame] | 134 | |
Georgios Pinitas | 5fdde99 | 2021-06-25 05:42:57 +0100 | [diff] [blame] | 135 | /** Static function to check if given info will lead to a valid configuration |
George Wort | a1e7e28 | 2019-01-15 11:00:29 +0000 | [diff] [blame] | 136 | * |
Georgios Pinitas | 5fdde99 | 2021-06-25 05:42:57 +0100 | [diff] [blame] | 137 | * Similar to CpuDivisionKernel::configure() |
George Wort | a1e7e28 | 2019-01-15 11:00:29 +0000 | [diff] [blame] | 138 | * |
Georgios Pinitas | 5fdde99 | 2021-06-25 05:42:57 +0100 | [diff] [blame] | 139 | * @return a status |
George Wort | a1e7e28 | 2019-01-15 11:00:29 +0000 | [diff] [blame] | 140 | */ |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 141 | static Status validate(const ITensorInfo *src0, const ITensorInfo *src1, const ITensorInfo *dst); |
George Wort | a1e7e28 | 2019-01-15 11:00:29 +0000 | [diff] [blame] | 142 | |
Fadi Arafeh | 73bb6b7 | 2022-10-06 16:20:14 +0000 | [diff] [blame] | 143 | /** Return minimum workload size of the relevant kernel |
| 144 | * |
| 145 | * @param[in] platform The CPU platform used to create the context. |
| 146 | * @param[in] thread_count Number of threads in the execution. |
| 147 | * |
| 148 | * @return[out] mws Minimum workload size for requested configuration. |
| 149 | */ |
| 150 | size_t get_mws(const CPUInfo &platform, size_t thread_count) const override; |
| 151 | |
George Wort | a1e7e28 | 2019-01-15 11:00:29 +0000 | [diff] [blame] | 152 | protected: |
| 153 | // Inherited methods overridden: |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 154 | static Status validate_arguments(const ITensorInfo &src0, const ITensorInfo &src1, const ITensorInfo &dst); |
George Wort | a1e7e28 | 2019-01-15 11:00:29 +0000 | [diff] [blame] | 155 | }; |
| 156 | |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 157 | class CpuPowerKernel : public CpuArithmeticKernel |
Usama Arif | 81e671e | 2019-05-13 13:33:14 +0100 | [diff] [blame] | 158 | { |
| 159 | public: |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 160 | CpuPowerKernel() = default; |
Usama Arif | 81e671e | 2019-05-13 13:33:14 +0100 | [diff] [blame] | 161 | |
Georgios Pinitas | 1813422 | 2020-09-03 21:00:23 +0100 | [diff] [blame] | 162 | /** Configure kernel |
Usama Arif | 81e671e | 2019-05-13 13:33:14 +0100 | [diff] [blame] | 163 | * |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 164 | * @param[in] src0 First tensor input info. Data types supported: F16/F32. |
| 165 | * @param[in] src1 Second tensor input info. Data types supported: Same as @p src0. |
| 166 | * @param[out] dst Output tensor info. Data types supported: Same as @p src0. |
Usama Arif | 81e671e | 2019-05-13 13:33:14 +0100 | [diff] [blame] | 167 | */ |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 168 | void configure(const ITensorInfo *src0, const ITensorInfo *src1, ITensorInfo *dst); |
Usama Arif | 81e671e | 2019-05-13 13:33:14 +0100 | [diff] [blame] | 169 | |
Georgios Pinitas | 5fdde99 | 2021-06-25 05:42:57 +0100 | [diff] [blame] | 170 | /** Static function to check if given info will lead to a valid configuration |
Usama Arif | 81e671e | 2019-05-13 13:33:14 +0100 | [diff] [blame] | 171 | * |
Georgios Pinitas | 5fdde99 | 2021-06-25 05:42:57 +0100 | [diff] [blame] | 172 | * Similar to CpuPowerKernel::configure() |
Usama Arif | 81e671e | 2019-05-13 13:33:14 +0100 | [diff] [blame] | 173 | * |
Georgios Pinitas | 5fdde99 | 2021-06-25 05:42:57 +0100 | [diff] [blame] | 174 | * @return a status |
Usama Arif | 81e671e | 2019-05-13 13:33:14 +0100 | [diff] [blame] | 175 | */ |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 176 | static Status validate(const ITensorInfo *src0, const ITensorInfo *src1, const ITensorInfo *dst); |
Usama Arif | 81e671e | 2019-05-13 13:33:14 +0100 | [diff] [blame] | 177 | |
| 178 | protected: |
| 179 | // Inherited methods overridden: |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 180 | static Status validate_arguments(const ITensorInfo &src0, const ITensorInfo &src1, const ITensorInfo &dst); |
Usama Arif | 81e671e | 2019-05-13 13:33:14 +0100 | [diff] [blame] | 181 | }; |
| 182 | |
Dana Zlotnik | 6a2df88 | 2022-01-17 09:54:26 +0200 | [diff] [blame] | 183 | class CpuComparisonKernel : public CpuElementwiseKernel<CpuComparisonKernel> |
George Wort | d88590f | 2018-12-12 17:39:58 +0000 | [diff] [blame] | 184 | { |
| 185 | public: |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 186 | CpuComparisonKernel() = default; |
George Wort | d88590f | 2018-12-12 17:39:58 +0000 | [diff] [blame] | 187 | |
Georgios Pinitas | 1813422 | 2020-09-03 21:00:23 +0100 | [diff] [blame] | 188 | /** Configure kernel |
George Wort | d88590f | 2018-12-12 17:39:58 +0000 | [diff] [blame] | 189 | * |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 190 | * @param[in] op Comparison operation to be executed. |
| 191 | * @param[in] src0 First tensor input info. Data types supported: QASYMM8/QASYMM8_SIGNED/S16/F16/S32/F32. |
| 192 | * @param[in] src1 Second tensor input info. Data types supported: Same as @p src0. |
| 193 | * @param[out] dst Output tensor info. Data types supported: U8. |
George Wort | d88590f | 2018-12-12 17:39:58 +0000 | [diff] [blame] | 194 | */ |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 195 | void configure(ComparisonOperation op, const ITensorInfo *src0, const ITensorInfo *src1, ITensorInfo *dst); |
George Wort | d88590f | 2018-12-12 17:39:58 +0000 | [diff] [blame] | 196 | |
Georgios Pinitas | 5fdde99 | 2021-06-25 05:42:57 +0100 | [diff] [blame] | 197 | /** Static function to check if given info will lead to a valid configuration |
George Wort | d88590f | 2018-12-12 17:39:58 +0000 | [diff] [blame] | 198 | * |
Georgios Pinitas | 5fdde99 | 2021-06-25 05:42:57 +0100 | [diff] [blame] | 199 | * Similar to CpuComparisonKernel::configure() |
George Wort | d88590f | 2018-12-12 17:39:58 +0000 | [diff] [blame] | 200 | * |
Georgios Pinitas | 5fdde99 | 2021-06-25 05:42:57 +0100 | [diff] [blame] | 201 | * @return a status |
George Wort | d88590f | 2018-12-12 17:39:58 +0000 | [diff] [blame] | 202 | */ |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 203 | static Status validate(ComparisonOperation op, const ITensorInfo *src0, const ITensorInfo *src1, const ITensorInfo *dst); |
George Wort | d88590f | 2018-12-12 17:39:58 +0000 | [diff] [blame] | 204 | |
Dana Zlotnik | 6a2df88 | 2022-01-17 09:54:26 +0200 | [diff] [blame] | 205 | static const std::vector<CpuElementwiseKernel<CpuComparisonKernel>::ElementwiseKernel> &get_available_kernels(); |
| 206 | |
George Wort | d88590f | 2018-12-12 17:39:58 +0000 | [diff] [blame] | 207 | protected: |
Dana Zlotnik | 6a2df88 | 2022-01-17 09:54:26 +0200 | [diff] [blame] | 208 | /** Commmon configure function for element-wise operators with no additional options (e.g. Min, Max, SquaredDiff) |
| 209 | */ |
| 210 | void configure_common(const ITensorInfo *src0, const ITensorInfo *src1, ITensorInfo *dst); |
George Wort | d88590f | 2018-12-12 17:39:58 +0000 | [diff] [blame] | 211 | // Inherited methods overridden: |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 212 | static Status validate_arguments(const ITensorInfo &src0, const ITensorInfo &src1, const ITensorInfo &dst); |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 213 | |
| 214 | private: |
| 215 | /** Function to get the micro kernel implementation |
| 216 | * |
Sang-Hoon Park | 668ccdc | 2021-02-03 10:32:59 +0000 | [diff] [blame] | 217 | * @param[in] src0 First input tensor information |
| 218 | * @param[in] src1 Second input tensor information |
| 219 | * @param[in] dst Output tensor information |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 220 | * |
| 221 | * @return the function instance for the micro kernel |
| 222 | */ |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 223 | |
| 224 | ComparisonOperation _op{}; |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 225 | }; |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 226 | } // namespace kernels |
| 227 | } // namespace cpu |
giuros01 | 92fd943 | 2018-12-03 17:30:00 +0000 | [diff] [blame] | 228 | } // namespace arm_compute |
Sang-Hoon Park | 63001ac | 2021-01-18 14:20:27 +0000 | [diff] [blame] | 229 | #endif /* ARM_COMPUTE_CPU_ELEMENTWISE_KERNEL_H */ |