From 2cd184763ff7f8767e751f2fe0c461714350aae6 Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Tue, 15 Dec 2020 10:42:38 +0000 Subject: 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 Signed-off-by: Jan Eilers Change-Id: Id3b4588fb0b9ac7e3f47ba2c19feead7beb58e18 --- src/backends/cl/ClBackendContext.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/backends') 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) -- cgit v1.2.1