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
3340cbc6
Unverified
Commit
3340cbc6
authored
Jun 07, 2019
by
Scott Cyphers
Committed by
GitHub
Jun 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate #3028 to r0.21 (#3032)
parent
002aef50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
mkldnn_emitter.hpp
src/ngraph/runtime/cpu/mkldnn_emitter.hpp
+3
-2
cpu_layout.cpp
src/ngraph/runtime/cpu/pass/cpu_layout.cpp
+7
-2
No files found.
src/ngraph/runtime/cpu/mkldnn_emitter.hpp
View file @
3340cbc6
...
...
@@ -937,8 +937,9 @@ namespace ngraph
mkldnn
::
algorithm
convolution_algo
=
mkldnn_utils
::
get_conv_algo
();
if
(
node
->
get_input_element_type
(
0
)
!=
element
::
f32
&&
convolution_algo
!=
mkldnn
::
algorithm
::
convolution_direct
)
if
((
node
->
get_input_element_type
(
0
)
!=
element
::
f32
&&
convolution_algo
!=
mkldnn
::
algorithm
::
convolution_direct
)
||
convolution
->
get_argument
(
0
)
->
get_shape
()[
1
]
<=
8
)
{
convolution_algo
=
mkldnn
::
algorithm
::
convolution_direct
;
}
...
...
src/ngraph/runtime/cpu/pass/cpu_layout.cpp
View file @
3340cbc6
...
...
@@ -395,8 +395,13 @@ namespace ngraph
std
::
unique_ptr
<
convolution_forward
::
desc
>
fwd_desc
{
nullptr
};
auto
convolution_algo
=
mkldnn_utils
::
get_conv_algo
();
if
(
node
->
get_input_element_type
(
0
)
!=
element
::
f32
&&
convolution_algo
!=
mkldnn
::
algorithm
::
convolution_direct
)
// I/p channels less than 8 & convolution_algo = convolution_auto
// forces src format to be nChw16c & the weight format to be
// OIhw16i16o which invokes mkldnn reference implementation of conv
// which crashes as it has no support for post ops
if
((
node
->
get_input_element_type
(
0
)
!=
element
::
f32
&&
convolution_algo
!=
mkldnn
::
algorithm
::
convolution_direct
)
||
arg0_shape
[
1
]
<=
8
)
{
convolution_algo
=
mkldnn
::
algorithm
::
convolution_direct
;
}
...
...
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