blob: ca4b480b5131d68c99d1c1ede43370a2f8b22f6d [file] [log] [blame]
saoste012df12b32018-11-28 16:57:20 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8#include <iostream>
9
10namespace armnn
11{
Matthew Bentham9734f092022-05-16 12:04:58 +010012template<typename T>
13struct maximum
saoste012df12b32018-11-28 16:57:20 +000014 {
Matthew Bentham9734f092022-05-16 12:04:58 +010015 typedef T result_type;
16 typedef T first_argument_type;
17
saoste012df12b32018-11-28 16:57:20 +000018 T
19 operator () (const T& inputData0, const T& inputData1) const
20 {
21 return std::max(inputData0, inputData1);
22 }
23 };
24
25} //namespace armnn