Skip to content

Commit 378df43

Browse files
authored
[onert] Fix exception throw in memory manager (#16482)
This commit fixes a typo causing the exception not being thrown. ONE-DCO-1.0-Signed-off-by: Arkadiusz Bokowy <a.bokowy@samsung.com>
1 parent 6d7ce02 commit 378df43

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

runtime/contrib/gpu_cl/MemoryManager.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "tensorflow/lite/delegates/gpu/common/task/storage_type_util.h"
3232

3333
#include <cassert>
34+
#include <stdexcept>
3435

3536
namespace onert
3637
{
@@ -69,7 +70,7 @@ class MemoryManager
6970

7071
if (!CreateTensor(*_context, shape, descriptor, tensor->handle()).ok())
7172
{
72-
std::runtime_error("Failed to CreateTensor");
73+
throw std::runtime_error("Failed to CreateTensor");
7374
}
7475
switch (type)
7576
{

0 commit comments

Comments
 (0)