Conor Kennedy | 54b2169 | 2019-01-09 07:57:38 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include <neon/workloads/NeonWorkloadUtils.hpp> |
| 9 | |
| 10 | #include <arm_compute/runtime/NEON/functions/NEElementwiseOperations.h> |
| 11 | |
| 12 | namespace armnn |
| 13 | { |
| 14 | |
| 15 | /// Validate function for validating the inputs and output. |
| 16 | /// @param [in] input0 The input0 value to be validated. |
| 17 | /// @param [in] input1 The input1 value to be validated. |
| 18 | /// @param [in] output The output value to be validated. |
| 19 | arm_compute::Status NeonMinimumWorkloadValidate(const TensorInfo& input0, |
| 20 | const TensorInfo& input1, |
| 21 | const TensorInfo& output); |
| 22 | |
| 23 | class NeonMinimumWorkload : public BaseWorkload<MinimumQueueDescriptor> |
| 24 | { |
| 25 | public: |
| 26 | /// Create a NeonMinimumWorkload. |
| 27 | /// @param [in] descriptor The MinimumQueueDescriptor to configure this operation. |
| 28 | /// @param [in] info The workload where this operation can be found. |
| 29 | NeonMinimumWorkload(const MinimumQueueDescriptor& descriptor, const WorkloadInfo& info); |
| 30 | |
| 31 | /// Execute the Minimum operation. |
| 32 | virtual void Execute() const override; |
| 33 | |
| 34 | private: |
| 35 | mutable arm_compute::NEElementwiseMin m_MinLayer; |
| 36 | }; |
| 37 | |
| 38 | } //namespace armnn |