saoste01 | 2df12b3 | 2018-11-28 16:57:20 +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 <iostream> |
| 9 | |
| 10 | namespace armnn |
| 11 | { |
Matthew Bentham | 9734f09 | 2022-05-16 12:04:58 +0100 | [diff] [blame] | 12 | template<typename T> |
| 13 | struct maximum |
saoste01 | 2df12b3 | 2018-11-28 16:57:20 +0000 | [diff] [blame] | 14 | { |
Matthew Bentham | 9734f09 | 2022-05-16 12:04:58 +0100 | [diff] [blame] | 15 | typedef T result_type; |
| 16 | typedef T first_argument_type; |
| 17 | |
saoste01 | 2df12b3 | 2018-11-28 16:57:20 +0000 | [diff] [blame] | 18 | T |
| 19 | operator () (const T& inputData0, const T& inputData1) const |
| 20 | { |
| 21 | return std::max(inputData0, inputData1); |
| 22 | } |
| 23 | }; |
| 24 | |
| 25 | } //namespace armnn |