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
498e6c9d
Commit
498e6c9d
authored
Jul 18, 2023
by
Khalique Ahmed
Browse files
merge pointwise improvements
parent
f85ba189
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/layout_nhwc.cpp
src/layout_nhwc.cpp
+1
-2
No files found.
src/layout_nhwc.cpp
View file @
498e6c9d
...
@@ -116,7 +116,6 @@ void insert_contiguous(module& m)
...
@@ -116,7 +116,6 @@ void insert_contiguous(module& m)
auto
reshape
=
m
.
insert_instruction
(
ins
,
ins
->
get_operator
(),
c
);
auto
reshape
=
m
.
insert_instruction
(
ins
,
ins
->
get_operator
(),
c
);
m
.
replace_instruction
(
ins
,
reshape
);
m
.
replace_instruction
(
ins
,
reshape
);
}
}
std
::
cout
<<
"after"
<<
std
::
endl
;
// m.debug_print();
// m.debug_print();
}
}
...
@@ -140,7 +139,7 @@ void layout_nhwc::apply(module_pass_manager& mpm) const
...
@@ -140,7 +139,7 @@ void layout_nhwc::apply(module_pass_manager& mpm) const
// preserve_output_layout(mpm.get_module());
// preserve_output_layout(mpm.get_module());
insert_contiguous
(
mpm
.
get_module
());
insert_contiguous
(
mpm
.
get_module
());
mpm
.
run_pass
(
dead_code_elimination
{});
mpm
.
run_pass
(
dead_code_elimination
{});
mpm
.
get_module
().
debug_print
();
//
mpm.get_module().debug_print();
transform_convolutions
(
mpm
.
get_module
(),
this
->
skip_elim_contiguous
);
transform_convolutions
(
mpm
.
get_module
(),
this
->
skip_elim_contiguous
);
mpm
.
run_pass
(
dead_code_elimination
{});
mpm
.
run_pass
(
dead_code_elimination
{});
// if(not this->skip_elim_contiguous)
// if(not this->skip_elim_contiguous)
...
...
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