Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
c62fc414
Commit
c62fc414
authored
Aug 16, 2021
by
Paul
Browse files
Formatting
parent
39cd4850
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/layout_nhwc.cpp
src/layout_nhwc.cpp
+2
-2
No files found.
src/layout_nhwc.cpp
100755 → 100644
View file @
c62fc414
...
...
@@ -67,9 +67,9 @@ void remove_layout(module& m, const std::unordered_set<instruction_ref>& output_
{
if
(
ins
->
name
()
!=
"layout"
)
continue
;
if
(
ins
->
get_shape
()
!=
ins
->
inputs
().
front
()
->
get_shape
())
if
(
ins
->
get_shape
()
!=
ins
->
inputs
().
front
()
->
get_shape
())
continue
;
if
(
contains
(
output_layouts
,
ins
))
if
(
contains
(
output_layouts
,
ins
))
continue
;
m
.
replace_instruction
(
ins
,
ins
->
inputs
().
front
());
}
...
...
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