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
c7ad413e
Commit
c7ad413e
authored
Jul 09, 2018
by
Paul
Browse files
Formatting
parent
82e3f0b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
src/include/migraph/program.hpp
src/include/migraph/program.hpp
+1
-1
src/program.cpp
src/program.cpp
+2
-4
No files found.
src/include/migraph/program.hpp
View file @
c7ad413e
...
@@ -54,7 +54,7 @@ struct program
...
@@ -54,7 +54,7 @@ struct program
instruction_ref
remove_instruction
(
instruction_ref
ins
);
instruction_ref
remove_instruction
(
instruction_ref
ins
);
instruction_ref
remove_instructions
(
instruction_ref
first
,
instruction_ref
last
);
instruction_ref
remove_instructions
(
instruction_ref
first
,
instruction_ref
last
);
instruction_ref
move_instruction
(
instruction_ref
src
,
instruction_ref
dst
);
instruction_ref
move_instruction
(
instruction_ref
src
,
instruction_ref
dst
);
template
<
class
...
Ts
>
template
<
class
...
Ts
>
...
...
src/program.cpp
View file @
c7ad413e
...
@@ -64,10 +64,8 @@ instruction_ref program::remove_instructions(instruction_ref first, instruction_
...
@@ -64,10 +64,8 @@ instruction_ref program::remove_instructions(instruction_ref first, instruction_
{
{
assert
(
has_instruction
(
first
));
assert
(
has_instruction
(
first
));
assert
(
has_instruction
(
last
));
assert
(
has_instruction
(
last
));
std
::
for_each
(
first
,
last
,
[
&
](
instruction
&
ins
)
{
std
::
for_each
(
first
,
last
,
[
&
](
instruction
&
ins
)
{
ins
.
clear_arguments
();
});
ins
.
clear_arguments
();
assert
(
std
::
all_of
(
first
,
last
,
[
&
](
instruction
&
ins
)
{
return
ins
.
output
.
empty
();
}));
});
assert
(
std
::
all_of
(
first
,
last
,
[
&
](
instruction
&
ins
){
return
ins
.
output
.
empty
();
}));
return
impl
->
instructions
.
erase
(
first
,
last
);
return
impl
->
instructions
.
erase
(
first
,
last
);
}
}
...
...
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