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
5589227b
Commit
5589227b
authored
Apr 24, 2019
by
Shucai Xiao
Browse files
fixed a cppcheck error in eliminate_contiguous.cpp file
parent
5e36c210
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/eliminate_contiguous.cpp
src/eliminate_contiguous.cpp
+4
-5
No files found.
src/eliminate_contiguous.cpp
View file @
5589227b
...
...
@@ -33,11 +33,10 @@ static bool try_compute_shape(instruction_ref ins, const std::vector<shape>& inp
for
(
auto
output
:
outputs
)
{
auto
args
=
output
->
inputs
();
std
::
vector
<
shape
>
input_shapes
;
for
(
auto
arg
:
args
)
{
input_shapes
.
push_back
((
arg
==
ins
)
?
new_shape
:
arg
->
get_shape
());
}
std
::
vector
<
shape
>
input_shapes
(
args
.
size
());
std
::
transform
(
args
.
begin
(),
args
.
end
(),
input_shapes
.
begin
(),
[
&
](
auto
&
arg
)
{
return
(
arg
==
ins
)
?
new_shape
:
arg
->
get_shape
();
});
if
(
!
try_compute_shape
(
output
,
input_shapes
))
{
...
...
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