From e1fdd2866b0f403b5e80994890d62c2c038c16c9 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Tue, 26 Oct 2021 21:26:10 +0100 Subject: IVGCVSW-6470 Create MemoryStrategyBenchmark * Refactor the strategy library to be more generic * Shorten the names of the current strategies * Change validatorStrat to throw exceptions Change-Id: I0d9c9ef609b2d8675e5788610d1accac6767c660 Signed-off-by: Finn Williams Signed-off-by: Jim Flynn --- include/armnn/Exceptions.hpp | 6 ++++++ include/armnn/IRuntime.hpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/armnn/Exceptions.hpp b/include/armnn/Exceptions.hpp index 1a123bfbce..980b57449d 100644 --- a/include/armnn/Exceptions.hpp +++ b/include/armnn/Exceptions.hpp @@ -161,6 +161,12 @@ public: using Exception::Exception; }; +class MemoryValidationException : public Exception +{ +public: + using Exception::Exception; +}; + template void ConditionalThrow(bool condition, const std::string& message) { diff --git a/include/armnn/IRuntime.hpp b/include/armnn/IRuntime.hpp index 014481357d..b89cfd72cd 100644 --- a/include/armnn/IRuntime.hpp +++ b/include/armnn/IRuntime.hpp @@ -198,7 +198,7 @@ public: /// The following backend options are available: /// AllBackends: /// "MemoryOptimizerStrategy" : string [stategynameString] - /// (Existing Memory Optimizer Strategies: ConstLayerMemoryOptimizerStrategy) + /// (Existing Memory Optimizer Strategies: ConstantMemoryStrategy) /// GpuAcc: /// "TuningLevel" : int [0..3] (0=UseOnly(default) | 1=RapidTuning | 2=NormalTuning | 3=ExhaustiveTuning) /// "TuningFile" : string [filenameString] -- cgit v1.2.1