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
93edc7e1
Commit
93edc7e1
authored
Apr 17, 2019
by
Paul
Browse files
Fix compiler error
parent
f21a7346
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test/propagate_constant_test.cpp
test/propagate_constant_test.cpp
+4
-4
No files found.
test/propagate_constant_test.cpp
View file @
93edc7e1
...
@@ -82,9 +82,9 @@ TEST_CASE(const_add_mul)
...
@@ -82,9 +82,9 @@ TEST_CASE(const_add_mul)
TEST_CASE
(
const_add_scalar
)
TEST_CASE
(
const_add_scalar
)
{
{
migraphx
::
program
p1
;
migraphx
::
program
p1
;
auto
one
=
p1
.
add_instruction
(
migraphx
::
op
::
scalar
{
{
migraphx
::
shape
::
int32_type
,
{
2
,
2
}}
}
,
auto
one
=
p1
.
add_instruction
(
migraphx
::
op
::
scalar
{{
2
,
2
}},
p1
.
add_literal
(
1
));
p1
.
add_literal
(
1
));
auto
two
=
p1
.
add_instruction
(
migraphx
::
op
::
scalar
{
{
migraphx
::
shape
::
int32_type
,
{
2
,
2
}}
}
,
auto
two
=
p1
.
add_instruction
(
migraphx
::
op
::
scalar
{{
2
,
2
}},
p1
.
add_literal
(
2
));
p1
.
add_literal
(
2
));
auto
sum
=
p1
.
add_instruction
(
migraphx
::
op
::
add
{},
one
,
two
);
auto
sum
=
p1
.
add_instruction
(
migraphx
::
op
::
add
{},
one
,
two
);
p1
.
add_instruction
(
pass_op
{},
sum
);
p1
.
add_instruction
(
pass_op
{},
sum
);
...
@@ -101,7 +101,7 @@ TEST_CASE(const_scalar)
...
@@ -101,7 +101,7 @@ TEST_CASE(const_scalar)
{
{
migraphx
::
program
p1
;
migraphx
::
program
p1
;
{
{
auto
one
=
p1
.
add_instruction
(
migraphx
::
op
::
scalar
{
{
migraphx
::
shape
::
int32_type
,
{
2
,
2
}}
}
,
auto
one
=
p1
.
add_instruction
(
migraphx
::
op
::
scalar
{{
2
,
2
}},
p1
.
add_literal
(
1
));
p1
.
add_literal
(
1
));
p1
.
add_instruction
(
pass_op
{},
one
);
p1
.
add_instruction
(
pass_op
{},
one
);
}
}
...
@@ -109,7 +109,7 @@ TEST_CASE(const_scalar)
...
@@ -109,7 +109,7 @@ TEST_CASE(const_scalar)
migraphx
::
program
p2
;
migraphx
::
program
p2
;
{
{
auto
one
=
p2
.
add_instruction
(
migraphx
::
op
::
scalar
{
{
migraphx
::
shape
::
int32_type
,
{
2
,
2
}}
}
,
auto
one
=
p2
.
add_instruction
(
migraphx
::
op
::
scalar
{{
2
,
2
}},
p2
.
add_literal
(
1
));
p2
.
add_literal
(
1
));
p2
.
add_instruction
(
pass_op
{},
one
);
p2
.
add_instruction
(
pass_op
{},
one
);
}
}
...
...
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