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
ee382ad9
Commit
ee382ad9
authored
Nov 24, 2021
by
Paul
Browse files
Format
parent
2a0ff223
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/targets/gpu/mlir.cpp
src/targets/gpu/mlir.cpp
+2
-2
No files found.
src/targets/gpu/mlir.cpp
View file @
ee382ad9
...
@@ -398,14 +398,14 @@ struct mlir_program
...
@@ -398,14 +398,14 @@ struct mlir_program
static
std
::
string
get_name
(
instruction_ref
ins
)
static
std
::
string
get_name
(
instruction_ref
ins
)
{
{
if
(
ins
->
name
()
==
"@return"
)
if
(
ins
->
name
()
==
"@return"
)
return
"std.return"
;
return
"std.return"
;
return
"migraphx."
+
ins
->
name
();
return
"migraphx."
+
ins
->
name
();
}
}
static
shape
get_shape
(
instruction_ref
ins
)
static
shape
get_shape
(
instruction_ref
ins
)
{
{
if
(
ins
->
name
()
==
"@return"
)
if
(
ins
->
name
()
==
"@return"
)
{
{
assert
(
ins
->
inputs
().
size
()
==
1
);
assert
(
ins
->
inputs
().
size
()
==
1
);
return
ins
->
inputs
().
front
()
->
get_shape
();
return
ins
->
inputs
().
front
()
->
get_shape
();
...
...
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