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
43e66470
Commit
43e66470
authored
Aug 17, 2023
by
Khalique Ahmed
Browse files
add warning message
parent
e46a6a52
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/targets/gpu/fuse_mlir.cpp
src/targets/gpu/fuse_mlir.cpp
+3
-0
No files found.
src/targets/gpu/fuse_mlir.cpp
View file @
43e66470
...
@@ -127,7 +127,10 @@ MIGRAPHX_PRED_MATCHER(is_mlir_conv, instruction_ref ins)
...
@@ -127,7 +127,10 @@ MIGRAPHX_PRED_MATCHER(is_mlir_conv, instruction_ref ins)
value
v
=
ins
->
get_operator
().
to_value
();
value
v
=
ins
->
get_operator
().
to_value
();
auto
group
=
v
.
at
(
"group"
).
to
<
int
>
();
auto
group
=
v
.
at
(
"group"
).
to
<
int
>
();
if
(
group
!=
1
)
if
(
group
!=
1
)
{
std
::
cerr
<<
"Warning: missed convolution with group "
<<
group
<<
" when using MLIR."
<<
std
::
endl
;
return
false
;
return
false
;
}
// Avoid MLIR assertion: Index < Length && "Invalid index!"
// Avoid MLIR assertion: Index < Length && "Invalid index!"
if
(
ins
->
get_shape
().
lens
().
size
()
!=
4
)
if
(
ins
->
get_shape
().
lens
().
size
()
!=
4
)
return
false
;
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