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
93560cdf
Commit
93560cdf
authored
Feb 27, 2018
by
Jaikrishnan Menon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CPU: Generalize pooling
parent
2941cd42
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
cpu_emitter.cpp
src/ngraph/runtime/cpu/cpu_emitter.cpp
+2
-1
mkldnn_emitter.cpp
src/ngraph/runtime/cpu/mkldnn_emitter.cpp
+3
-2
mkldnn_emitter.hpp
src/ngraph/runtime/cpu/mkldnn_emitter.hpp
+2
-1
No files found.
src/ngraph/runtime/cpu/cpu_emitter.cpp
View file @
93560cdf
...
...
@@ -2281,7 +2281,8 @@ namespace ngraph
auto
result_desc
=
mkldnn_emitter
->
build_memory_descriptor
(
out
[
0
],
runtime
::
cpu
::
mkldnn_utils
::
get_output_mkldnn_format
(
node
,
0
));
size_t
max_pool_index
=
mkldnn_emitter
->
build_max_pool_forward
(
size_t
max_pool_index
=
mkldnn_emitter
->
build_pooling_forward
(
mkldnn
::
algorithm
::
pooling_max
,
input_desc
,
result_desc
,
max_pool
->
get_window_movement_strides
(),
...
...
src/ngraph/runtime/cpu/mkldnn_emitter.cpp
View file @
93560cdf
...
...
@@ -222,7 +222,8 @@ size_t MKLDNNEmitter::build_convolution_backward_data(const mkldnn::memory::desc
return
primitive_index
;
}
size_t
MKLDNNEmitter
::
build_max_pool_forward
(
const
mkldnn
::
memory
::
desc
&
input_desc
,
size_t
MKLDNNEmitter
::
build_pooling_forward
(
mkldnn
::
algorithm
pooling_algorithm
,
const
mkldnn
::
memory
::
desc
&
input_desc
,
const
mkldnn
::
memory
::
desc
&
result_desc
,
const
ngraph
::
Strides
&
window_strides
,
const
ngraph
::
Shape
&
window_shape
,
...
...
@@ -234,7 +235,7 @@ size_t MKLDNNEmitter::build_max_pool_forward(const mkldnn::memory::desc& input_d
size_t
primitive_index
=
insert_primitive
(
new
mkldnn
::
pooling_forward
(
{{
mkldnn
::
prop_kind
::
forward_inference
,
mkldnn
::
algorithm
::
pooling_max
,
pooling_algorithm
,
input_desc
,
result_desc
,
mkldnn
::
memory
::
dims
(
window_strides
.
begin
(),
window_strides
.
end
()),
...
...
src/ngraph/runtime/cpu/mkldnn_emitter.hpp
View file @
93560cdf
...
...
@@ -87,7 +87,8 @@ namespace ngraph
const
ngraph
::
CoordinateDiff
&
padding_below
,
const
ngraph
::
CoordinateDiff
&
padding_above
);
size_t
build_max_pool_forward
(
const
mkldnn
::
memory
::
desc
&
input_desc
,
size_t
build_pooling_forward
(
mkldnn
::
algorithm
pooling_algorithm
,
const
mkldnn
::
memory
::
desc
&
input_desc
,
const
mkldnn
::
memory
::
desc
&
result_desc
,
const
ngraph
::
Strides
&
window_strides
,
const
ngraph
::
Shape
&
window_shape
,
...
...
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