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
4ddaf83e
Commit
4ddaf83e
authored
Jun 08, 2022
by
Paul
Browse files
Fix copy-paste
parent
8e832756
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
src/eliminate_contiguous.cpp
src/eliminate_contiguous.cpp
+1
-9
No files found.
src/eliminate_contiguous.cpp
View file @
4ddaf83e
...
@@ -98,13 +98,6 @@ static void remove_contiguous(const std::string& op_name, module& m, F f)
...
@@ -98,13 +98,6 @@ static void remove_contiguous(const std::string& op_name, module& m, F f)
if
(
arg
->
name
()
!=
op_name
)
if
(
arg
->
name
()
!=
op_name
)
continue
;
continue
;
auto
prev
=
arg
->
inputs
().
front
();
auto
prev
=
arg
->
inputs
().
front
();
replace
(
new_args
,
arg
,
prev
);
if
(
try_compute_shape
(
ins
,
new_args
,
mod_args
))
{
instruction
::
replace_argument
(
ins
,
arg
,
prev
);
}
else
if
(
prev
->
can_eval
())
{
replace
(
new_args
,
arg
,
prev
);
replace
(
new_args
,
arg
,
prev
);
if
(
try_compute_shape
(
ins
,
new_args
,
mod_args
))
if
(
try_compute_shape
(
ins
,
new_args
,
mod_args
))
{
{
...
@@ -116,7 +109,6 @@ static void remove_contiguous(const std::string& op_name, module& m, F f)
...
@@ -116,7 +109,6 @@ static void remove_contiguous(const std::string& op_name, module& m, F f)
}
}
}
}
}
}
}
// Perform evaluations in parallel
// Perform evaluations in parallel
std
::
vector
<
argument
>
literals
(
const_instructions
.
size
());
std
::
vector
<
argument
>
literals
(
const_instructions
.
size
());
...
...
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