#include <SquaredDifference.hpp>
|
| T | operator() (const T &input1, const T &input2) const |
| |
template<typename T>
struct armnn::squaredDifference< T >
Definition at line 14 of file SquaredDifference.hpp.
◆ first_argument_type
◆ result_type
◆ operator()()
template<typename T >
| T operator() |
( |
const T & | input1, |
|
|
const T & | input2 ) const |
|
inline |
Definition at line 20 of file SquaredDifference.hpp.
21 {
22 float diff = std::minus<>{}(static_cast<float>(input1),static_cast<float>(input2));
23 T squaredDiff = armnn::numeric_cast<T>(std::pow(static_cast<float>(diff), 2));
24 return squaredDiff;
25 }
The documentation for this struct was generated from the following file: