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
be738d04
Unverified
Commit
be738d04
authored
Oct 07, 2019
by
aslepko
Committed by
GitHub
Oct 07, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3734 from NervanaSystems/ayzhuang/reshape_rotation_0.26
Migrate PR#3710 from master.
parents
b48de90a
faeda9fb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
mkldnn_utils.cpp
src/ngraph/runtime/cpu/mkldnn_utils.cpp
+7
-1
cpu_layout.cpp
src/ngraph/runtime/cpu/pass/cpu_layout.cpp
+1
-6
No files found.
src/ngraph/runtime/cpu/mkldnn_utils.cpp
View file @
be738d04
...
...
@@ -1325,6 +1325,12 @@ memory::desc runtime::cpu::mkldnn_utils::rotate_blocked_md(const memory::desc& i
md
.
data_type
=
in
.
data
.
data_type
;
md
.
format_desc
.
blocking
.
inner_nblks
=
in
.
data
.
format_desc
.
blocking
.
inner_nblks
;
AxisVector
inverse_axis_order
(
in
.
data
.
ndims
);
for
(
size_t
i
=
0
;
i
<
in
.
data
.
ndims
;
i
++
)
{
inverse_axis_order
[
axis_order
[
i
]]
=
i
;
}
for
(
size_t
i
=
0
;
i
<
in
.
data
.
ndims
;
i
++
)
{
md
.
padded_dims
[
i
]
=
in
.
data
.
padded_dims
[
axis_order
[
i
]];
...
...
@@ -1337,7 +1343,7 @@ memory::desc runtime::cpu::mkldnn_utils::rotate_blocked_md(const memory::desc& i
{
md
.
format_desc
.
blocking
.
inner_blks
[
i
]
=
in
.
data
.
format_desc
.
blocking
.
inner_blks
[
i
];
md
.
format_desc
.
blocking
.
inner_idxs
[
i
]
=
axis_order
[
in
.
data
.
format_desc
.
blocking
.
inner_idxs
[
i
]];
inverse_
axis_order
[
in
.
data
.
format_desc
.
blocking
.
inner_idxs
[
i
]];
}
md
.
offset0
=
in
.
data
.
offset0
;
...
...
src/ngraph/runtime/cpu/pass/cpu_layout.cpp
View file @
be738d04
...
...
@@ -1895,12 +1895,7 @@ namespace ngraph
if
(
input_shape
[
axis_order
[
i
]]
!=
output_shape
[
i
])
return
false
;
}
#if MKLDNN_VERSION_MAJOR >= 1
if
(
mkldnn_utils
::
is_mkldnn_desc_blocked_data_format
(
md
))
{
return
false
;
}
#endif
return
true
;
}
...
...
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