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
b2259d88
Commit
b2259d88
authored
Mar 04, 2019
by
Robert Kimball
Committed by
Scott Cyphers
Mar 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get backend working again (#2547)
parent
bd869cb8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
CMakeLists.txt
src/ngraph/runtime/generic_cpu/CMakeLists.txt
+1
-1
gcpu_executable.hpp
src/ngraph/runtime/generic_cpu/gcpu_executable.hpp
+7
-3
broadcast.hpp
src/ngraph/runtime/generic_cpu/kernel/broadcast.hpp
+2
-0
No files found.
src/ngraph/runtime/generic_cpu/CMakeLists.txt
View file @
b2259d88
...
...
@@ -26,7 +26,7 @@ if (NGRAPH_GENERIC_CPU_ENABLE)
VERSION
${
NGRAPH_VERSION
}
SOVERSION
${
NGRAPH_API_VERSION
}
)
endif
()
target_link_libraries
(
gcpu_backend PRIVATE ngraph libeigen
hybrid_base interpreter_backend
)
target_link_libraries
(
gcpu_backend PRIVATE ngraph libeigen
)
target_compile_options
(
gcpu_backend PUBLIC -fopenmp
)
install
(
TARGETS gcpu_backend
...
...
src/ngraph/runtime/generic_cpu/gcpu_executable.hpp
View file @
b2259d88
...
...
@@ -44,6 +44,7 @@
#include "ngraph/op/min.hpp"
#include "ngraph/op/one_hot.hpp"
#include "ngraph/op/pad.hpp"
#include "ngraph/op/passthrough.hpp"
#include "ngraph/op/product.hpp"
#include "ngraph/op/quantize.hpp"
#include "ngraph/op/replace_slice.hpp"
...
...
@@ -126,7 +127,6 @@
#include "ngraph/runtime/reference/softmax.hpp"
#include "ngraph/runtime/reference/sqrt.hpp"
#include "ngraph/runtime/reference/subtract.hpp"
#include "ngraph/runtime/reference/sum.hpp"
#include "ngraph/runtime/reference/tan.hpp"
#include "ngraph/runtime/reference/tanh.hpp"
#include "ngraph/runtime/reference/topk.hpp"
...
...
@@ -929,6 +929,11 @@ private:
pad
->
get_padding_interior
());
break
;
}
case
OP_TYPEID
:
:
Passthrough
:
{
const
op
::
Passthrough
*
passthrough
=
static_cast
<
const
op
::
Passthrough
*>
(
&
node
);
throw
unsupported_op
{
"Unsupported operation language: "
+
passthrough
->
language
()};
}
case
OP_TYPEID
:
:
Power
:
{
size_t
element_count
=
shape_size
(
node
.
get_output_shape
(
0
));
...
...
@@ -1003,8 +1008,7 @@ private:
case
OP_TYPEID
:
:
QuantizedConvolution
:
case
OP_TYPEID
:
:
QuantizedMaxPool
:
{
throw
unsupported_op
(
"Unsupported op '"
+
node
.
description
()
+
"' in Interpreter back end."
);
throw
unsupported_op
(
"Unsupported op '"
+
node
.
description
()
+
"'."
);
}
case
OP_TYPEID
:
:
Relu
:
{
...
...
src/ngraph/runtime/generic_cpu/kernel/broadcast.hpp
View file @
b2259d88
...
...
@@ -33,6 +33,7 @@ namespace ngraph
{
namespace
kernel
{
#ifdef PARALLEL
static
std
::
tuple
<
size_t
,
size_t
>
get_start_finish
(
size_t
size
)
{
const
size_t
nthreads
=
omp_get_num_threads
();
...
...
@@ -41,6 +42,7 @@ namespace ngraph
const
size_t
finish
=
(
ithread
+
1
)
*
size
/
nthreads
;
return
std
::
make_tuple
(
start
,
finish
);
}
#endif
template
<
typename
T
>
void
broadcast_2d
(
const
T
*
in
,
T
*
out
,
...
...
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