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
0e520fb1
Unverified
Commit
0e520fb1
authored
Feb 06, 2018
by
Matthew Brookhart
Committed by
GitHub
Feb 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into jbobba/mkldnn-outlining
parents
5dd0acfb
f4d3089c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
cpu_emitter.cpp
src/ngraph/runtime/cpu/cpu_emitter.cpp
+11
-7
cpu_external_function.cpp
src/ngraph/runtime/cpu/cpu_external_function.cpp
+1
-0
No files found.
src/ngraph/runtime/cpu/cpu_emitter.cpp
100644 → 100755
View file @
0e520fb1
...
...
@@ -948,11 +948,15 @@ void runtime::cpu::CPU_Emitter::EmitReshape(codegen::CodeWriter& writer,
writer
<<
"}
\n
"
;
}
}
// Other cases
(reordering of axes for tensors with rank>2) are not handled yet.
// Other cases
else
{
throw
ngraph_error
(
"Axis permutation in reshape is not implemented yet for tensors with rank>2"
);
writer
<<
"kernel::reshape<"
<<
out
[
0
].
get_type
()
<<
">("
<<
args
[
0
].
get_name
()
<<
",
\n
"
;
writer
<<
" "
<<
out
[
0
].
get_name
()
<<
",
\n
"
;
writer
<<
" {"
<<
join
(
args
[
0
].
get_shape
())
<<
"},
\n
"
;
writer
<<
" {"
<<
join
(
reshape
->
get_input_order
())
<<
"},
\n
"
;
writer
<<
" {"
<<
join
(
out
[
0
].
get_shape
())
<<
"}
\n
"
;
writer
<<
" );
\n
"
;
}
#else
kernel
::
emit_reshape
(
writer
,
...
...
@@ -2369,8 +2373,8 @@ void runtime::cpu::CPU_Emitter::EmitAvgPoolBackprop(
writer
<<
" {"
<<
join
(
apb
->
get_window_shape
())
<<
"},
\n
"
;
writer
<<
" {"
<<
join
(
apb
->
get_window_movement_strides
())
<<
"},
\n
"
;
writer
<<
" {"
<<
join
(
apb
->
get_padding_below
())
<<
"},
\n
"
;
writer
<<
" {"
<<
join
(
apb
->
get_padding_above
())
<<
"}
,
\n
"
;
writer
<<
"
true
);
\n
"
;
writer
<<
" {"
<<
join
(
apb
->
get_padding_above
())
<<
"}
\n
"
;
writer
<<
" );
\n
"
;
}
void
runtime
::
cpu
::
CPU_Emitter
::
EmitMaxPoolBackprop
(
...
...
@@ -2393,8 +2397,8 @@ void runtime::cpu::CPU_Emitter::EmitMaxPoolBackprop(
writer
<<
" {"
<<
join
(
mpb
->
get_window_shape
())
<<
"},
\n
"
;
writer
<<
" {"
<<
join
(
mpb
->
get_window_movement_strides
())
<<
"},
\n
"
;
writer
<<
" {"
<<
join
(
mpb
->
get_padding_below
())
<<
"},
\n
"
;
writer
<<
" {"
<<
join
(
mpb
->
get_padding_above
())
<<
"}
,
\n
"
;
writer
<<
"
true
);
\n
"
;
writer
<<
" {"
<<
join
(
mpb
->
get_padding_above
())
<<
"}
\n
"
;
writer
<<
" );
\n
"
;
}
//------------------------------------------------------------------------------------------------
...
...
src/ngraph/runtime/cpu/cpu_external_function.cpp
View file @
0e520fb1
...
...
@@ -270,6 +270,7 @@ void runtime::cpu::CPU_ExternalFunction::compile()
#include "ngraph/runtime/kernel/reduce.hpp"
#include "ngraph/runtime/kernel/reduce_window.hpp"
#include "ngraph/runtime/kernel/replace_slice.hpp"
#include "ngraph/runtime/kernel/reshape.hpp"
#include "ngraph/runtime/kernel/reverse.hpp"
#include "ngraph/runtime/kernel/select_and_scatter.hpp"
#include "ngraph/runtime/kernel/slice.hpp"
...
...
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