aboutsummaryrefslogtreecommitdiff
path: root/shim/sl/canonical/CanonicalUtils.cpp
diff options
context:
space:
mode:
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;
}