Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit ad20f21

Browse files
authored
Merge pull request #3305 from NervanaSystems/bob/r024_allocator
Add fix to r0.24 branch
2 parents 28f2001 + 266850a commit ad20f21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngraph/runtime/allocator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ class ngraph::runtime::DefaultAllocator : public ngraph::runtime::Allocator
5151

5252
ngraph::runtime::Allocator* ngraph::runtime::get_default_allocator()
5353
{
54-
static std::unique_ptr<DefaultAllocator> allocator(new DefaultAllocator());
55-
return allocator.get();
54+
static DefaultAllocator* s_allocator = new DefaultAllocator();
55+
return s_allocator;
5656
}

0 commit comments

Comments
 (0)