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
b53f3d1a
Commit
b53f3d1a
authored
Aug 16, 2021
by
Paul
Browse files
Fix error in replacing args
parent
c62fc414
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
src/eliminate_contiguous.cpp
src/eliminate_contiguous.cpp
+1
-6
src/instruction.cpp
src/instruction.cpp
+0
-0
No files found.
src/eliminate_contiguous.cpp
100644 → 100755
View file @
b53f3d1a
...
@@ -90,12 +90,7 @@ void eliminate_contiguous::apply(module& p) const
...
@@ -90,12 +90,7 @@ void eliminate_contiguous::apply(module& p) const
if
(
try_compute_shape
(
ins
,
new_args
))
if
(
try_compute_shape
(
ins
,
new_args
))
{
{
for
(
auto
i
:
range
(
args
.
size
()))
p
.
replace_instruction
(
ins
,
ins
->
get_operator
(),
new_args
);
{
if
(
args
[
i
]
==
new_args
[
i
])
continue
;
instruction
::
replace_argument
(
ins
,
args
[
i
],
new_args
[
i
]);
}
}
}
else
else
{
{
...
...
src/instruction.cpp
100644 → 100755
View file @
b53f3d1a
File mode changed from 100644 to 100755
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