From 03c7ff3f6188240baaeaeb405a357a0c58195fec Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 22 Aug 2023 12:00:04 +0100 Subject: IVGCVSW-7702 Update Doxygen Docu for 23.08 Signed-off-by: Nikhil Raj Change-Id: I357a9f7e47614589327c1ac5d95b6224ff77103d --- latest/_squared_difference_8hpp_source.html | 144 ++++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 latest/_squared_difference_8hpp_source.html (limited to 'latest/_squared_difference_8hpp_source.html') diff --git a/latest/_squared_difference_8hpp_source.html b/latest/_squared_difference_8hpp_source.html new file mode 100644 index 0000000000..486a3a6266 --- /dev/null +++ b/latest/_squared_difference_8hpp_source.html @@ -0,0 +1,144 @@ + + + + + + + + +Arm NN: src/backends/reference/workloads/SquaredDifference.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.08 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
SquaredDifference.hpp
+
+
+Go to the documentation of this file.
1 //
+
2 // Copyright © 2023 Arm Ltd and Contributors. All rights reserved.
+
3 // SPDX-License-Identifier: MIT
+
4 //
+
5 
+
6 #pragma once
+
7 
+
8 #include <cmath>
+
9 
+
10 namespace armnn
+
11 {
+
12 
+
13 template<typename T>
+ +
15 {
+
16  typedef T result_type;
+ +
18 
+
19  T
+
20  operator()(const T& input1, const T& input2) const
+
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  }
+
26 };
+
27 
+
28 } //namespace armnn
+
+
+ +
T operator()(const T &input1, const T &input2) const
+ + +
Copyright (c) 2021 ARM Limited and Contributors.
+ + + + -- cgit v1.2.1