Correct TuningLevel enumeration values 57/263557/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.5/unified/20211028.223402 accepted/tizen/7.0/unified/20221110.062033 accepted/tizen/7.0/unified/hotfix/20221116.110607 accepted/tizen/unified/20210909.101205 submit/tizen/20210906.093902 submit/tizen_6.5/20211028.163301 tizen_6.5.m2_release tizen_7.0_m2_release
authorInki Dae <inki.dae@samsung.com>
Tue, 16 Mar 2021 07:24:09 +0000 (16:24 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 6 Sep 2021 05:34:41 +0000 (14:34 +0900)
According to the header description - include/armnn/IRuntime.hpp, Each level should have below value.
-----------------------------------------------------------------------------------------------------
"TuningLevel" : int [0..3] (0=UseOnly(default) | 1=RapidTuning | 2=NormalTuning | 3=ExhaustiveTuning)
-----------------------------------------------------------------------------------------------------

And also src/backends/cl/ClBackendContext.cpp uses below enumeration values internally
for the tuning level,
----------------------
enum class TuningLevel
{
    None,
    Rapid,
    Normal,
    Exhaustive
};
----------------------

So this patch corrects TuningLevel enumeration values - which is exposed to user - to be consistent
with ones internally used.

This is upstream patch,
 https://review.mlplatform.org/c/ml/armnn/+/5269

Change-Id: I9a8aeea0115579bfd16cbe01f39183b96329cdfd
Signed-off-by: Inki Dae <inki.dae@samsung.com>
include/armnn/IRuntime.hpp

index 4114c99..9122089 100644 (file)
@@ -203,9 +203,9 @@ public:
 
     enum class TuningLevel
     {
-        Rapid = 0,
-        Normal = 1,
-        Exhaustive = 2
+        Rapid = 1,
+        Normal = 2,
+        Exhaustive = 3
     };
 
     /// Creates an IClTunedParameters with the given mode.