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
1bc38b12
Commit
1bc38b12
authored
Mar 13, 2018
by
Jayaram Bobba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize batchnorm backprop by propagating input layouts instead of delta layouts
parent
d3ea93e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
cpu_layout.cpp
src/ngraph/runtime/cpu/pass/cpu_layout.cpp
+5
-5
No files found.
src/ngraph/runtime/cpu/pass/cpu_layout.cpp
View file @
1bc38b12
...
...
@@ -1037,19 +1037,19 @@ namespace ngraph
{
if
(
runtime
::
cpu
::
mkldnn_utils
::
use_mkldnn_kernel
(
node
.
get
()))
{
auto
delta
_layout
=
runtime
::
cpu
::
mkldnn_utils
::
get_input_mkldnn_format
(
node
.
get
(),
5
);
auto
input
_layout
=
runtime
::
cpu
::
mkldnn_utils
::
get_input_mkldnn_format
(
node
.
get
(),
2
);
vector
<
memory
::
format
>
prim_input_formats
;
vector
<
memory
::
format
>
prim_output_formats
;
prim_input_formats
.
push_back
(
memory
::
format
::
x
);
// gamma
prim_input_formats
.
push_back
(
memory
::
format
::
x
);
// beta
prim_input_formats
.
push_back
(
delta
_layout
);
// input
prim_input_formats
.
push_back
(
input
_layout
);
// input
prim_input_formats
.
push_back
(
memory
::
format
::
x
);
// mean
prim_input_formats
.
push_back
(
memory
::
format
::
x
);
// variance
prim_input_formats
.
push_back
(
delta
_layout
);
// delta
prim_output_formats
.
push_back
(
delta
_layout
);
// dinput
prim_input_formats
.
push_back
(
input
_layout
);
// delta
prim_output_formats
.
push_back
(
input
_layout
);
// dinput
prim_output_formats
.
push_back
(
memory
::
format
::
x
);
// dgamma
prim_output_formats
.
push_back
(
memory
::
format
::
x
);
// dbeta
node
=
...
...
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