Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
3191696b
Commit
3191696b
authored
Jul 18, 2019
by
pruthvi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove static_initilize from cpu
parent
5e637637
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
17 deletions
+1
-17
backend_manager.cpp
src/ngraph/runtime/backend_manager.cpp
+0
-4
cpu_backend.cpp
src/ngraph/runtime/cpu/cpu_backend.cpp
+1
-13
No files found.
src/ngraph/runtime/backend_manager.cpp
View file @
3191696b
...
@@ -74,10 +74,6 @@ shared_ptr<runtime::Backend> runtime::BackendManager::create_backend(const std::
...
@@ -74,10 +74,6 @@ shared_ptr<runtime::Backend> runtime::BackendManager::create_backend(const std::
runtime
::
interpreter
::
static_initialize
();
runtime
::
interpreter
::
static_initialize
();
#endif
#endif
#ifdef NGRAPH_CPU_STATIC_LIB_ENABLE
runtime
::
cpu
::
static_initialize
();
#endif
shared_ptr
<
runtime
::
Backend
>
backend
;
shared_ptr
<
runtime
::
Backend
>
backend
;
string
type
=
config
;
string
type
=
config
;
...
...
src/ngraph/runtime/cpu/cpu_backend.cpp
View file @
3191696b
...
@@ -58,29 +58,17 @@ extern "C" runtime::BackendConstructor* get_backend_constructor_pointer()
...
@@ -58,29 +58,17 @@ extern "C" runtime::BackendConstructor* get_backend_constructor_pointer()
}
}
#endif
#endif
void
runtime
::
cpu
::
static_initialize
()
{
static
bool
s_is_initialized
=
false
;
if
(
!
s_is_initialized
)
{
s_is_initialized
=
true
;
BackendManager
::
register_backend
(
"CPU"
,
runtime
::
cpu
::
get_backend_constructor_pointer
());
}
}
namespace
namespace
{
{
#ifndef NGRAPH_CPU_STATIC_LIB_ENABLE
static
class
CPUStaticInit
static
class
CPUStaticInit
{
{
public
:
public
:
CPUStaticInit
()
CPUStaticInit
()
{
{
runtime
::
BackendManager
::
register_backend
(
"CPU"
,
get_backend_constructor_pointer
());
runtime
::
BackendManager
::
register_backend
(
"CPU"
,
runtime
::
cpu
::
get_backend_constructor_pointer
());
}
}
~
CPUStaticInit
()
{}
~
CPUStaticInit
()
{}
}
s_cpu_static_init
;
}
s_cpu_static_init
;
#endif
}
}
runtime
::
cpu
::
CPU_Backend
::~
CPU_Backend
()
runtime
::
cpu
::
CPU_Backend
::~
CPU_Backend
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment