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
ebb132a6
Commit
ebb132a6
authored
Feb 14, 2022
by
Shucai Xiao
Browse files
clang format
parent
a4567795
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
src/eliminate_contiguous.cpp
src/eliminate_contiguous.cpp
+2
-3
src/targets/gpu/lowering.cpp
src/targets/gpu/lowering.cpp
+12
-11
No files found.
src/eliminate_contiguous.cpp
View file @
ebb132a6
...
...
@@ -39,9 +39,8 @@ static bool try_compute_shape(instruction_ref ins,
return
false
;
}
if
(
std
::
any_of
(
outputs
.
begin
(),
outputs
.
end
(),
[](
auto
o
)
{
return
o
->
name
()
==
"@return"
;
}))
if
(
std
::
any_of
(
outputs
.
begin
(),
outputs
.
end
(),
[](
auto
o
)
{
return
o
->
name
()
==
"@return"
;
}))
{
return
false
;
}
...
...
src/targets/gpu/lowering.cpp
View file @
ebb132a6
...
...
@@ -83,15 +83,15 @@ struct miopen_apply
const
auto
&
prog_outputs
=
last
->
inputs
();
std
::
vector
<
instruction_ref
>
outputs
(
prog_outputs
.
size
());
std
::
transform
(
prog_outputs
.
begin
(),
prog_outputs
.
end
(),
outputs
.
begin
(),
[](
const
auto
&
i
)
{
std
::
transform
(
prog_outputs
.
begin
(),
prog_outputs
.
end
(),
outputs
.
begin
(),
[](
const
auto
&
i
)
{
auto
alias_ins
=
instruction
::
get_output_alias
(
i
);
auto
alias_s
=
alias_ins
->
get_shape
();
return
(
alias_s
.
type
()
==
shape
::
tuple_type
or
alias_s
.
elements
()
!=
i
->
get_shape
().
elements
())
?
i
:
alias_ins
;
}
);
return
(
alias_s
.
type
()
==
shape
::
tuple_type
or
alias_s
.
elements
()
!=
i
->
get_shape
().
elements
())
?
i
:
alias_ins
;
});
std
::
size_t
index
=
0
;
for
(
auto
ins
:
outputs
)
...
...
@@ -274,7 +274,8 @@ struct miopen_apply
{
auto
alias_s
=
ins_alias
->
get_shape
();
if
(
alias_s
.
type
()
==
shape
::
tuple_type
or
alias_s
.
elements
()
!=
ins
->
get_shape
().
elements
())
if
(
alias_s
.
type
()
==
shape
::
tuple_type
or
alias_s
.
elements
()
!=
ins
->
get_shape
().
elements
())
{
if
(
prog_output_names
.
count
(
ins
)
>
0
)
{
...
...
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