diff options
author | Jan Eilers <jan.eilers@arm.com> | 2020-12-15 10:42:38 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2021-01-22 11:48:34 +0000 |
commit | 2cd184763ff7f8767e751f2fe0c461714350aae6 (patch) | |
tree | 048a95b2b571bfa3ad03eceb5dd4ccd4d0a70c06 /src | |
parent | d672f5d4386dc0545d2e484ce85b76d53edb6bc9 (diff) | |
download | armnn-2cd184763ff7f8767e751f2fe0c461714350aae6.tar.gz |
IVGCVSW-5571 Expose the TfLite Delegate to the TfLite python API
* Implemented external delegate adaptor interface for TfLite
* Activated armnn logging for delegate
* Added logging info to indicate if gpu tuning is turned on
* Added pytests to ensure functionality of the external delegate adaptor
* Included the delegate directory into doxygen
* Added documentation on how to use the external delegate in python
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Signed-off-by: Jan Eilers <jan.eilers@arm.com>
Change-Id: Id3b4588fb0b9ac7e3f47ba2c19feead7beb58e18
Diffstat (limited to 'src')
-rw-r--r-- | src/backends/cl/ClBackendContext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backends/cl/ClBackendContext.cpp b/src/backends/cl/ClBackendContext.cpp index 22a4ceabd3..125f01b627 100644 --- a/src/backends/cl/ClBackendContext.cpp +++ b/src/backends/cl/ClBackendContext.cpp @@ -118,12 +118,15 @@ void ConfigureTuner(arm_compute::CLTuner &tuner, TuningLevel level) switch (level) { case TuningLevel::Rapid: + ARMNN_LOG(info) << "Gpu tuning is activated. TuningLevel: Rapid (1)"; tuner.set_tuner_mode(arm_compute::CLTunerMode::RAPID); break; case TuningLevel::Normal: + ARMNN_LOG(info) << "Gpu tuning is activated. TuningLevel: Normal (2)"; tuner.set_tuner_mode(arm_compute::CLTunerMode::NORMAL); break; case TuningLevel::Exhaustive: + ARMNN_LOG(info) << "Gpu tuning is activated. TuningLevel: Exhaustive (3)"; tuner.set_tuner_mode(arm_compute::CLTunerMode::EXHAUSTIVE); break; case TuningLevel::None: @@ -205,6 +208,7 @@ ClBackendContext::ClBackendContext(const IRuntime::CreationOptions& options) { try { + ARMNN_LOG(info) << "Loading Gpu tuning data from file: " << m_TuningFile; m_Tuner->load_from_file(m_TuningFile.c_str()); } catch (const std::exception& e) |