1 // 2 // Copyright © 2017 Arm Ltd. All rights reserved. 3 // SPDX-License-Identifier: MIT 4 // 5 6 #pragma once 7 8 namespace armnn 9 { 10 11 template<typename T> 12 struct minimum 13 { 14 typedef T result_type; 15 typedef T first_argument_type; 16 17 T operator ()armnn::minimum18 operator()(const T& input1, const T& input2) const 19 { 20 return std::min(input1, input2); 21 } 22 }; 23 24 } //namespace armnn 25 26