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) {