Skip to content

Commit eb6a5a9

Browse files
committed
[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 <a.bokowy@samsung.com>
1 parent 093fca8 commit eb6a5a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/contrib/gpu_cl/MemoryManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class MemoryManager
6969

7070
if (!CreateTensor(*_context, shape, descriptor, tensor->handle()).ok())
7171
{
72-
std::runtime_error("Failed to CreateTensor");
72+
throw std::runtime_error("Failed to CreateTensor");
7373
}
7474
switch (type)
7575
{

0 commit comments

Comments
 (0)