aboutsummaryrefslogtreecommitdiff
path: root/shim/sl/canonical/CanonicalUtils.cpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2023-09-16 18:53:52 +0100
committerTeresaARM <teresa.charlinreyes@arm.com>2023-09-19 13:06:09 +0000
commit987398f3c1b93cc63f6c25da8b9a20c68e7e8270 (patch)
tree4b6bb4f6226db3f14d7b8f99039c9003bf2c468c /shim/sl/canonical/CanonicalUtils.cpp
parent93b6064ca97c01a13d201a3829c24d25beaa457c (diff)
downloadarmnn-987398f3c1b93cc63f6c25da8b9a20c68e7e8270.tar.gz
IVGCVSW-7855 removed ASSERTs from shim code
Signed-off-by: Jim Flynn <jim.flynn@arm.com> Change-Id: I8b34e74800ebdb43e1b3f996eacd6c3360a331eb
Diffstat (limited to 'shim/sl/canonical/CanonicalUtils.cpp')
-rw-r--r--shim/sl/canonical/CanonicalUtils.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/shim/sl/canonical/CanonicalUtils.cpp b/shim/sl/canonical/CanonicalUtils.cpp
index 08a728c293..5afd8bd063 100644
--- a/shim/sl/canonical/CanonicalUtils.cpp
+++ b/shim/sl/canonical/CanonicalUtils.cpp
@@ -366,7 +366,10 @@ void DumpJsonProfilingIfRequired(bool gpuProfilingEnabled,
return;
}
- ARMNN_ASSERT(profiler);
+ if (profiler == nullptr)
+ {
+ throw armnn::InvalidArgumentException("DumpJsonProfilingIfRequired: pointer to profiler handed in is null");
+ }
// Set the name of the output profiling file.
fs::path dumpPath = dumpDir;
@@ -499,7 +502,7 @@ bool IsDynamicTensor(const armnn::TensorInfo& tensorInfo)
return !tensorInfo.GetShape().AreAllDimensionsSpecified();
}
-bool AreDynamicTensorsSupported()
+bool AreDynamicTensorsSupported()
{
return true;
}