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
3043afe5
Commit
3043afe5
authored
Aug 26, 2019
by
Paul
Browse files
Formatting
parent
38930532
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
test/simplify_algebra_test.cpp
test/simplify_algebra_test.cpp
+5
-5
No files found.
test/simplify_algebra_test.cpp
View file @
3043afe5
...
@@ -183,8 +183,8 @@ TEST_CASE(simplify_inner_broadcast)
...
@@ -183,8 +183,8 @@ TEST_CASE(simplify_inner_broadcast)
{
{
auto
x
=
p1
.
add_parameter
(
"x"
,
{
migraphx
::
shape
::
int32_type
,
{
1
}});
auto
x
=
p1
.
add_parameter
(
"x"
,
{
migraphx
::
shape
::
int32_type
,
{
1
}});
auto
y
=
p1
.
add_parameter
(
"y"
,
{
migraphx
::
shape
::
int32_type
,
{
1
}});
auto
y
=
p1
.
add_parameter
(
"y"
,
{
migraphx
::
shape
::
int32_type
,
{
1
}});
auto
xb
=
p1
.
add_instruction
(
b
,
x
);
auto
xb
=
p1
.
add_instruction
(
b
,
x
);
auto
yb
=
p1
.
add_instruction
(
b
,
y
);
auto
yb
=
p1
.
add_instruction
(
b
,
y
);
auto
sum
=
p1
.
add_instruction
(
migraphx
::
op
::
add
{},
xb
,
yb
);
auto
sum
=
p1
.
add_instruction
(
migraphx
::
op
::
add
{},
xb
,
yb
);
p1
.
add_instruction
(
pass_op
{},
sum
);
p1
.
add_instruction
(
pass_op
{},
sum
);
}
}
...
@@ -192,9 +192,9 @@ TEST_CASE(simplify_inner_broadcast)
...
@@ -192,9 +192,9 @@ TEST_CASE(simplify_inner_broadcast)
migraphx
::
program
p2
;
migraphx
::
program
p2
;
{
{
auto
x
=
p2
.
add_parameter
(
"x"
,
{
migraphx
::
shape
::
int32_type
,
{
1
}});
auto
x
=
p2
.
add_parameter
(
"x"
,
{
migraphx
::
shape
::
int32_type
,
{
1
}});
auto
y
=
p2
.
add_parameter
(
"y"
,
{
migraphx
::
shape
::
int32_type
,
{
1
}});
auto
y
=
p2
.
add_parameter
(
"y"
,
{
migraphx
::
shape
::
int32_type
,
{
1
}});
auto
sum
=
p2
.
add_instruction
(
migraphx
::
op
::
add
{},
x
,
y
);
auto
sum
=
p2
.
add_instruction
(
migraphx
::
op
::
add
{},
x
,
y
);
auto
sumb
=
p2
.
add_instruction
(
b
,
sum
);
auto
sumb
=
p2
.
add_instruction
(
b
,
sum
);
p2
.
add_instruction
(
pass_op
{},
sumb
);
p2
.
add_instruction
(
pass_op
{},
sumb
);
}
}
...
...
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