From 1fbe6a1038a48ce67f4be71327f4b4314281dab6 Mon Sep 17 00:00:00 2001 From: Arkadiusz Bokowy Date: Mon, 20 Apr 2026 09:36:10 +0200 Subject: [PATCH] [onert] Fix exception throw in memory manager This commit fixes a typo causing the exception not being thrown. ONE-DCO-1.0-Signed-off-by: Arkadiusz Bokowy --- runtime/contrib/gpu_cl/MemoryManager.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/contrib/gpu_cl/MemoryManager.h b/runtime/contrib/gpu_cl/MemoryManager.h index 4b34c39b96a..b225a086278 100644 --- a/runtime/contrib/gpu_cl/MemoryManager.h +++ b/runtime/contrib/gpu_cl/MemoryManager.h @@ -31,6 +31,7 @@ #include "tensorflow/lite/delegates/gpu/common/task/storage_type_util.h" #include +#include namespace onert { @@ -69,7 +70,7 @@ class MemoryManager if (!CreateTensor(*_context, shape, descriptor, tensor->handle()).ok()) { - std::runtime_error("Failed to CreateTensor"); + throw std::runtime_error("Failed to CreateTensor"); } switch (type) {