aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRyan OShea <ryan.oshea3@arm.com>2023-07-25 14:28:27 +0100
committerryan.oshea3 <ryan.oshea3@arm.com>2023-08-02 14:25:26 +0000
commitb4c493430567bff25e61e9df0dbab554c29f635d (patch)
tree9d9fa320c25f5aa9f89aafb8b9b8b6c071990161 /tests
parent083802d04b7a4499c4daba860c57e4f152f9c060 (diff)
downloadarmnn-b4c493430567bff25e61e9df0dbab554c29f635d.tar.gz
IVGCVSW-7880 Add check for FP16 backend support
* Check if preferred backends have FP16 support before enable fp16-turbo-mode * Unit tests * Replaced global gpuAccCapabilities with getter method construction * Replaced deprecated function call in SL shim Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Signed-off-by: Ryan OShea <ryan.oshea3@arm.com> Change-Id: If29b62b330ca8987de8acf6408db11daf25ca0b5
Diffstat (limited to 'tests')
-rw-r--r--tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp b/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp
index 7b55b28b8b..4066cdcadb 100644
--- a/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp
+++ b/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp
@@ -410,7 +410,9 @@ ProgramOptions::ProgramOptions() : m_CxxOptions{"ExecuteNetwork",
("fp16-turbo-mode",
"If this option is enabled, FP32 layers, "
- "weights and biases will be converted to FP16 where the backend supports it",
+ "weights and biases will be converted to FP16 where the backend supports it. "
+ "If the first preferred backend does not have FP16 support, this option will be disabled. "
+ "If the value of converted FP16 is infinity, round to the closest finite FP16 value.",
cxxopts::value<bool>(m_ExNetParams.m_EnableFp16TurboMode)
->default_value("false")->implicit_value("true"))