From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/classarmnn_1_1_cl_tuned_parameters.xhtml | 341 +++++++++++++++++++++++++ 1 file changed, 341 insertions(+) create mode 100644 20.02/classarmnn_1_1_cl_tuned_parameters.xhtml (limited to '20.02/classarmnn_1_1_cl_tuned_parameters.xhtml') diff --git a/20.02/classarmnn_1_1_cl_tuned_parameters.xhtml b/20.02/classarmnn_1_1_cl_tuned_parameters.xhtml new file mode 100644 index 0000000000..c933c48629 --- /dev/null +++ b/20.02/classarmnn_1_1_cl_tuned_parameters.xhtml @@ -0,0 +1,341 @@ + + + + + + + + + + + + + +ArmNN: ClTunedParameters Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ClTunedParameters Class Reference
+
+
+ +

#include <ClContextControl.hpp>

+
+Inheritance diagram for ClTunedParameters:
+
+
+ + +IGpuAccTunedParameters + +
+ + + + + + + + + + +

+Public Member Functions

 ClTunedParameters (armnn::IGpuAccTunedParameters::Mode mode, armnn::IGpuAccTunedParameters::TuningLevel tuningLevel)
 
virtual void Load (const char *filename)
 Loads an existing set of tuned parameters from the given file. More...
 
virtual void Save (const char *filename) const
 Saves the current set of tuned parameters to the given file. More...
 
+ + + + + + + +

+Public Attributes

Mode m_Mode
 
TuningLevel m_TuningLevel
 
arm_compute::CLTuner m_Tuner
 
+ + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Public Types inherited from IGpuAccTunedParameters
enum  Mode { UseTunedParameters, +UpdateTunedParameters + }
 
enum  TuningLevel { Rapid = 0, +Normal = 1, +Exhaustive = 2 + }
 
- Static Public Member Functions inherited from IGpuAccTunedParameters
static void Destroy (IGpuAccTunedParameters *params)
 
static IGpuAccTunedParametersCreateRaw (Mode mode, TuningLevel tunerMode)
 Creates an IClTunedParameters with the given mode. More...
 
static IGpuAccTunedParametersPtr Create (Mode mode, TuningLevel tunerMode)
 
- Protected Member Functions inherited from IGpuAccTunedParameters
virtual ~IGpuAccTunedParameters ()
 
+

Detailed Description

+
+

Definition at line 42 of file ClContextControl.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ClTunedParameters()

+ +
+
+ + + + + + + + + + + + + + + + + + +
ClTunedParameters (armnn::IGpuAccTunedParameters::Mode mode,
armnn::IGpuAccTunedParameters::TuningLevel tuningLevel 
)
+
+
+

Member Function Documentation

+ +

◆ Load()

+ +
+
+ + + + + +
+ + + + + + + + +
void Load (const char * filename)
+
+virtual
+
+ +

Loads an existing set of tuned parameters from the given file.

+

If there is an error loading the file, an armnn::Exception is thrown.

+ +

Implements IGpuAccTunedParameters.

+ +

Definition at line 193 of file ClContextControl.cpp.

+ +

References ClTunedParameters::m_Tuner.

+
194 {
195  try
196  {
197  m_Tuner.load_from_file(filename);
198  }
199  catch (const std::exception& e)
200  {
201  throw armnn::Exception(std::string("Failed to load tuned parameters file '") + filename + "': " +
202  e.what());
203  }
204 }
arm_compute::CLTuner m_Tuner
+
Base class for all ArmNN exceptions so that users can filter to just those.
Definition: Exceptions.hpp:46
+
+
+
+ +

◆ Save()

+ +
+
+ + + + + +
+ + + + + + + + +
void Save (const char * filename) const
+
+virtual
+
+ +

Saves the current set of tuned parameters to the given file.

+

If there is an error saving to the file, an armnn::Exception is thrown.

+ +

Implements IGpuAccTunedParameters.

+ +

Definition at line 206 of file ClContextControl.cpp.

+ +

References ClTunedParameters::m_Tuner.

+
207 {
208  try
209  {
210  m_Tuner.save_to_file(filename);
211  }
212  catch (const std::exception& e)
213  {
214  throw armnn::Exception(std::string("Failed to save tuned parameters file to '") + filename + "': " +
215  e.what());
216  }
217 }
arm_compute::CLTuner m_Tuner
+
Base class for all ArmNN exceptions so that users can filter to just those.
Definition: Exceptions.hpp:46
+
+
+
+

Member Data Documentation

+ +

◆ m_Mode

+ +
+
+ + + + +
Mode m_Mode
+
+ +

Definition at line 50 of file ClContextControl.hpp.

+ +
+
+ +

◆ m_Tuner

+ +
+
+ + + + +
arm_compute::CLTuner m_Tuner
+
+ +

Definition at line 53 of file ClContextControl.hpp.

+ +

Referenced by ClTunedParameters::Load(), and ClTunedParameters::Save().

+ +
+
+ +

◆ m_TuningLevel

+ +
+
+ + + + +
TuningLevel m_TuningLevel
+
+ +

Definition at line 51 of file ClContextControl.hpp.

+ +
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1