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
e72668cc
"...gpu/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "be99b85d2d9dc7ad24fceba3685786ec9cb9047f"
Commit
e72668cc
authored
Oct 19, 2021
by
Paul
Browse files
Formatting
parent
d99f4860
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/mlir.cpp
src/mlir.cpp
+1
-1
test/mlir.cpp
test/mlir.cpp
+2
-2
No files found.
src/mlir.cpp
View file @
e72668cc
...
...
@@ -398,7 +398,7 @@ struct mlir_program
auto
fbody
=
insert
(
mbody
,
m
,
ins_map
);
for
(
auto
ins
:
iterator_for
(
m
))
{
if
(
ins
->
name
()
==
"@param"
)
if
(
ins
->
name
()
==
"@param"
)
continue
;
auto
name
=
"migraphx."
+
ins
->
name
();
auto
ops
=
create_operation_state
(
name
);
...
...
test/mlir.cpp
View file @
e72668cc
...
...
@@ -7,8 +7,8 @@
TEST_CASE
(
conv
)
{
migraphx
::
module
m
;
auto
x
=
m
.
add_parameter
(
"x"
,
{
migraphx
::
shape
::
float_type
,
{
1
,
8
,
4
,
4
}});
auto
w
=
m
.
add_parameter
(
"w"
,
{
migraphx
::
shape
::
float_type
,
{
2
,
8
,
3
,
3
}});
auto
x
=
m
.
add_parameter
(
"x"
,
{
migraphx
::
shape
::
float_type
,
{
1
,
8
,
4
,
4
}});
auto
w
=
m
.
add_parameter
(
"w"
,
{
migraphx
::
shape
::
float_type
,
{
2
,
8
,
3
,
3
}});
m
.
add_instruction
(
migraphx
::
make_op
(
"convolution"
),
x
,
w
);
auto
s
=
migraphx
::
dump_mlir
(
m
);
std
::
cout
<<
s
<<
std
::
endl
;
...
...
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