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
b811040e
Commit
b811040e
authored
Jun 28, 2023
by
Ted Themistokleous
Browse files
Add more debug
parent
15674793
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
src/include/migraphx/op/reshape.hpp
src/include/migraphx/op/reshape.hpp
+9
-0
src/simplify_algebra.cpp
src/simplify_algebra.cpp
+6
-3
No files found.
src/include/migraphx/op/reshape.hpp
View file @
b811040e
...
@@ -243,6 +243,15 @@ struct reshape
...
@@ -243,6 +243,15 @@ struct reshape
}
}
}
}
std
::
cout
<<
"rdims:"
;
for
(
auto
&
r
:
rdims
)
{
std
::
cout
<<
r
<<
", "
;
}
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
inputs
.
front
()
<<
std
::
endl
;
auto
s
=
reshape_dims
(
inputs
.
front
(),
rdims
);
auto
s
=
reshape_dims
(
inputs
.
front
(),
rdims
);
if
(
not
s
.
has_value
())
if
(
not
s
.
has_value
())
{
{
...
...
src/simplify_algebra.cpp
View file @
b811040e
...
@@ -547,9 +547,12 @@ struct find_inner_broadcast
...
@@ -547,9 +547,12 @@ struct find_inner_broadcast
// m.debug_print();
// m.debug_print();
auto
op
=
insert_common_op
(
m
,
ins
,
ins
->
get_operator
(),
inputs
);
auto
op
=
insert_common_op
(
m
,
ins
,
ins
->
get_operator
(),
inputs
);
op
->
debug_print
();
m
.
debug_print
(
op
);
ins
->
debug_print
();
m
.
debug_print
(
ins
);
broadcasts
.
front
()
->
debug_print
();
m
.
debug_print
(
broadcasts
);
m
.
debug_print
(
broadcasts
.
front
()
->
outputs
());
m
.
debug_print
(
broadcasts
.
front
()
->
outputs
().
front
()
->
outputs
());
m
.
debug_print
();
auto
r_op
=
m
.
replace_instruction
(
ins
,
broadcasts
.
front
()
->
get_operator
(),
op
);
auto
r_op
=
m
.
replace_instruction
(
ins
,
broadcasts
.
front
()
->
get_operator
(),
op
);
r_op
->
debug_print
();
r_op
->
debug_print
();
std
::
cout
<<
"
\n
"
<<
std
::
endl
;
std
::
cout
<<
"
\n
"
<<
std
::
endl
;
...
...
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