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
25f560c3
Commit
25f560c3
authored
Sep 15, 2018
by
Paul
Browse files
Formatting
parent
30aad12f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
17 deletions
+5
-17
src/include/migraph/instruction.hpp
src/include/migraph/instruction.hpp
+5
-17
No files found.
src/include/migraph/instruction.hpp
View file @
25f560c3
...
...
@@ -99,25 +99,13 @@ struct instruction
return
lit
;
}
const
operation
&
get_operator
()
const
{
return
op
;
}
const
operation
&
get_operator
()
const
{
return
op
;
}
std
::
string
name
()
const
{
return
op
.
name
();
}
std
::
string
name
()
const
{
return
op
.
name
();
}
const
std
::
vector
<
instruction_ref
>&
inputs
()
const
{
return
arguments
;
}
const
std
::
vector
<
instruction_ref
>&
inputs
()
const
{
return
arguments
;
}
const
std
::
vector
<
instruction_ref
>&
outputs
()
const
{
return
output
;
}
const
std
::
vector
<
instruction_ref
>&
outputs
()
const
{
return
output
;
}
friend
bool
operator
==
(
instruction_ref
ref
,
const
instruction
&
i
)
{
return
i
==
ref
;
}
...
...
@@ -150,7 +138,7 @@ struct instruction
std
::
replace
(
arguments
.
begin
(),
arguments
.
end
(),
old
,
new_ins
);
old
->
remove_output
(
*
this
);
}
// internal
void
replace
(
operation
o
,
const
shape
&
r
,
std
::
vector
<
instruction_ref
>
args
)
{
...
...
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