From ae050524109f1ce827962665436ef7430f2ac479 Mon Sep 17 00:00:00 2001 From: David Monahan Date: Wed, 22 Mar 2023 16:48:58 +0000 Subject: IVGCVSW-7255 Update Doxygen Documentation and publish on GitHub. * Updating Doxygen documentation for 23.02 release. Signed-off-by: David Monahan Change-Id: I545574ff7664b4595d2fe6a91a3c35d2ad55df82 --- 23.02/_arm_compute_tuning_utils_8cpp_source.xhtml | 113 +++++++++++++++++----- 1 file changed, 88 insertions(+), 25 deletions(-) (limited to '23.02/_arm_compute_tuning_utils_8cpp_source.xhtml') diff --git a/23.02/_arm_compute_tuning_utils_8cpp_source.xhtml b/23.02/_arm_compute_tuning_utils_8cpp_source.xhtml index 809148c452..2afb638fe6 100644 --- a/23.02/_arm_compute_tuning_utils_8cpp_source.xhtml +++ b/23.02/_arm_compute_tuning_utils_8cpp_source.xhtml @@ -8,7 +8,7 @@ - + ArmNN: src/backends/aclCommon/ArmComputeTuningUtils.cpp Source File @@ -19,9 +19,6 @@ - @@ -30,7 +27,8 @@ extensions: ["tex2jax.js"], jax: ["input/TeX","output/HTML-CSS"], }); - + + @@ -51,18 +49,21 @@ - + +/* @license-end */
@@ -76,7 +77,9 @@ $(function() {
@@ -98,30 +101,90 @@ $(document).ready(function(){initNavTree('_arm_compute_tuning_utils_8cpp_source.
ArmComputeTuningUtils.cpp
-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 
7 
8 namespace armnn
9 {
10 
13 {
14  return new ClTunedParameters(mode, tuningLevel);
15 }
16 
19 {
21 }
22 
24 {
25  delete params;
26 }
27 
30  : m_Mode(mode)
31  , m_TuningLevel(tuningLevel)
32  , m_Tuner(mode == ClTunedParameters::Mode::UpdateTunedParameters)
33 {
34 }
35 
36 void ClTunedParameters::Load(const char* filename)
37 {
38  try
39  {
40  m_Tuner.load_from_file(filename);
41  }
42  catch (const std::exception& e)
43  {
44  throw Exception(std::string("Failed to load tuned parameters file '") + filename + "': " + e.what());
45  }
46 }
47 
48 void ClTunedParameters::Save(const char* filename) const
49 {
50  try
51  {
52  m_Tuner.save_to_file(filename);
53  }
54  catch (const std::exception& e)
55  {
56  throw Exception(std::string("Failed to save tuned parameters file to '") + filename + "': " + e.what());
57  }
58 }
59 
60 }
static void Destroy(IGpuAccTunedParameters *params)
-
static IGpuAccTunedParameters * CreateRaw(Mode mode, TuningLevel tunerMode)
Creates an IClTunedParameters with the given mode.
-
Copyright (c) 2021 ARM Limited and Contributors.
-
virtual void Load(const char *filename)
Loads an existing set of tuned parameters from the given file.
- - - - -
std::shared_ptr< IGpuAccTunedParameters > IGpuAccTunedParametersPtr
The following API is replaced by the backend options API.
Definition: IRuntime.hpp:307
- -
ClTunedParameters(IGpuAccTunedParameters::Mode mode, IGpuAccTunedParameters::TuningLevel tuningLevel)
-
Manages a set of GpuAcc parameters which have been tuned for maximum performance. ...
Definition: IRuntime.hpp:320
-
Base class for all ArmNN exceptions so that users can filter to just those.
Definition: Exceptions.hpp:46
-
virtual void Save(const char *filename) const
Saves the current set of tuned parameters to the given file.
-
static IGpuAccTunedParametersPtr Create(Mode mode, TuningLevel tunerMode)
+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 
+ +
7 
+
8 namespace armnn
+
9 {
+
10 
+ + +
13 {
+
14  return new ClTunedParameters(mode, tuningLevel);
+
15 }
+
16 
+ + +
19 {
+ +
21 }
+
22 
+ +
24 {
+
25  delete params;
+
26 }
+
27 
+ + +
30  : m_Mode(mode)
+
31  , m_TuningLevel(tuningLevel)
+
32  , m_Tuner(mode == ClTunedParameters::Mode::UpdateTunedParameters)
+
33 {
+
34 }
+
35 
+
36 void ClTunedParameters::Load(const char* filename)
+
37 {
+
38  try
+
39  {
+
40  m_Tuner.load_from_file(filename);
+
41  }
+
42  catch (const std::exception& e)
+
43  {
+
44  throw Exception(std::string("Failed to load tuned parameters file '") + filename + "': " + e.what());
+
45  }
+
46 }
+
47 
+
48 void ClTunedParameters::Save(const char* filename) const
+
49 {
+
50  try
+
51  {
+
52  m_Tuner.save_to_file(filename);
+
53  }
+
54  catch (const std::exception& e)
+
55  {
+
56  throw Exception(std::string("Failed to save tuned parameters file to '") + filename + "': " + e.what());
+
57  }
+
58 }
+
59 
+
60 }
+
Base class for all ArmNN exceptions so that users can filter to just those.
Definition: Exceptions.hpp:46
+
Manages a set of GpuAcc parameters which have been tuned for maximum performance.
Definition: IRuntime.hpp:320
+ +
static IGpuAccTunedParametersPtr Create(Mode mode, TuningLevel tunerMode)
+ +
Copyright (c) 2021 ARM Limited and Contributors.
+
static IGpuAccTunedParameters * CreateRaw(Mode mode, TuningLevel tunerMode)
Creates an IClTunedParameters with the given mode.
+
virtual void Save(const char *filename) const
Saves the current set of tuned parameters to the given file.
+
static void Destroy(IGpuAccTunedParameters *params)
+
std::shared_ptr< IGpuAccTunedParameters > IGpuAccTunedParametersPtr
The following API is replaced by the backend options API.
Definition: IRuntime.hpp:307
+
ClTunedParameters(IGpuAccTunedParameters::Mode mode, IGpuAccTunedParameters::TuningLevel tuningLevel)
+ +
virtual void Load(const char *filename)
Loads an existing set of tuned parameters from the given file.
+ + -- cgit v1.2.1