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
5315d9bb
Commit
5315d9bb
authored
Aug 14, 2023
by
Khalique Ahmed
Browse files
fix bug in eliminate_contiguous
parent
c9a533d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
src/auto_contiguous.cpp
src/auto_contiguous.cpp
+0
-2
src/eliminate_contiguous.cpp
src/eliminate_contiguous.cpp
+1
-1
No files found.
src/auto_contiguous.cpp
View file @
5315d9bb
...
...
@@ -76,8 +76,6 @@ void auto_contiguous::apply(module& m) const
{
continue
;
}
if
(
ins
->
name
()
==
"pointwise"
)
std
::
cout
<<
"HERE"
<<
std
::
endl
;
auto
c
=
m
.
insert_instruction
(
std
::
next
(
ins
),
make_op
(
"contiguous"
),
ins
);
m
.
replace_instruction
(
ins
,
c
);
}
...
...
src/eliminate_contiguous.cpp
View file @
5315d9bb
...
...
@@ -79,7 +79,7 @@ static bool try_compute_shape(instruction_ref ins,
return
(
arg
==
ins
)
?
new_shape
:
arg
->
get_shape
();
});
if
(
not
try_compute_shape
(
output
,
input_shapes
,
mods
))
if
(
not
try_compute_shape
(
output
,
input_shapes
,
output
->
module_inputs
()
))
{
return
false
;
}
...
...
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