Commit 3f2ba6f9 authored by pruthvi's avatar pruthvi

fix clang error

parent 9e54e66f
...@@ -24,7 +24,6 @@ void* ngraph::runtime::Allocator::Malloc(void* handle, size_t size, size_t align ...@@ -24,7 +24,6 @@ void* ngraph::runtime::Allocator::Malloc(void* handle, size_t size, size_t align
if (size != 0 && !ptr) if (size != 0 && !ptr)
{ {
throw ngraph_error("malloc failed to allocate memory of size " + std::to_string(size)); throw ngraph_error("malloc failed to allocate memory of size " + std::to_string(size));
throw std::bad_alloc();
} }
return ptr; return ptr;
} }
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "ngraph/runtime/backend.hpp" #include "ngraph/runtime/backend.hpp"
#include "ngraph/util.hpp" #include "ngraph/util.hpp"
using namespace ngraph;
namespace mkl namespace mkl
{ {
extern "C" { extern "C" {
...@@ -74,7 +73,6 @@ public: ...@@ -74,7 +73,6 @@ public:
if (size != 0 && !ptr) if (size != 0 && !ptr)
{ {
throw ngraph_error("malloc failed to allocate memory of size " + std::to_string(size)); throw ngraph_error("malloc failed to allocate memory of size " + std::to_string(size));
throw std::bad_alloc();
} }
return ptr; return ptr;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment