diff options
author | Inki Dae <inki.dae@samsung.com> | 2021-03-16 16:24:09 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2021-09-06 14:34:41 +0900 |
commit | 8adf8694b5bb61cb82fe5c495d5dabc4d3f0f3f6 (patch) | |
tree | 1570b499647c805bf38d4484533d97a81a4bdd0f | |
parent | f737084b415c8e631a245b0bbaa5adc1c2835e35 (diff) | |
download | armnn-8adf8694b5bb61cb82fe5c495d5dabc4d3f0f3f6.tar.gz armnn-8adf8694b5bb61cb82fe5c495d5dabc4d3f0f3f6.tar.bz2 armnn-8adf8694b5bb61cb82fe5c495d5dabc4d3f0f3f6.zip |
Correct TuningLevel enumeration valuestizen_7.0_m2_releasetizen_6.5.m2_releasesubmit/tizen_6.5/20211028.163301submit/tizen/20210906.093902accepted/tizen/unified/20210909.101205accepted/tizen/7.0/unified/hotfix/20221116.110607accepted/tizen/7.0/unified/20221110.062033accepted/tizen/6.5/unified/20211028.223402tizen_7.0_hotfixtizen_7.0tizen_6.5accepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unifiedaccepted/tizen_6.5_unified
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>
-rw-r--r-- | include/armnn/IRuntime.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/armnn/IRuntime.hpp b/include/armnn/IRuntime.hpp index 4114c9950..9122089b6 100644 --- a/include/armnn/IRuntime.hpp +++ b/include/armnn/IRuntime.hpp @@ -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. |