Commit e17237de authored by pruthvi's avatar pruthvi

style fix

parent 3cd92bae
...@@ -20,6 +20,4 @@ ngraph::runtime::cpu::CPUAllocator::CPUAllocator() ...@@ -20,6 +20,4 @@ ngraph::runtime::cpu::CPUAllocator::CPUAllocator()
: m_buffer(nullptr) : m_buffer(nullptr)
, m_byte_size(0) , m_byte_size(0)
{ {
} }
...@@ -51,23 +51,15 @@ namespace ngraph ...@@ -51,23 +51,15 @@ namespace ngraph
class ngraph::runtime::cpu::CPUAllocator class ngraph::runtime::cpu::CPUAllocator
{ {
public:
public:
CPUAllocator(size_t size); CPUAllocator(size_t size);
CPUAllocator(); CPUAllocator();
~CPUAllocator(); ~CPUAllocator();
private: private:
char* m_buffer; char* m_buffer;
size_t m_byte_size; size_t m_byte_size;
inline void* MallocHook(size_t size) inline void* MallocHook(size_t size) { m_buffer = static_cast<char*>(ngraph_malloc(size)); }
{ inline void FreeHook() { ngraph_free(m_buffer); }
m_buffer = static_cast<char*>(ngraph_malloc(size));
}
inline void FreeHook()
{
ngraph_free(m_buffer);
}
}; };
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