Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
f76d7970
Commit
f76d7970
authored
Sep 21, 2022
by
Ted Themistokleous
Browse files
Rename variables in simplify_zero_div_const test case
Make this easier to read.
parent
5ec8f913
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
test/simplify_algebra_test.cpp
test/simplify_algebra_test.cpp
+6
-6
No files found.
test/simplify_algebra_test.cpp
View file @
f76d7970
...
@@ -1283,13 +1283,13 @@ TEST_CASE(simplify_zero_div_const)
...
@@ -1283,13 +1283,13 @@ TEST_CASE(simplify_zero_div_const)
TEST_CASE
(
simplify_zero_div_const_vec
)
TEST_CASE
(
simplify_zero_div_const_vec
)
{
{
migraphx
::
shape
inner
{
migraphx
::
shape
::
int32_type
,
{
2
}};
migraphx
::
shape
zero_shape
{
migraphx
::
shape
::
int32_type
,
{
2
}};
migraphx
::
shape
outer
{
migraphx
::
shape
::
int32_type
,
{
1
,
2
,
3
,
3
}};
migraphx
::
shape
x_shape
{
migraphx
::
shape
::
int32_type
,
{
1
,
2
,
3
,
3
}};
migraphx
::
op
::
broadcast
b
{
1
,
{
1
,
2
,
3
,
3
}};
migraphx
::
op
::
broadcast
b
{
1
,
{
1
,
2
,
3
,
3
}};
migraphx
::
module
m1
;
migraphx
::
module
m1
;
{
{
auto
x
=
m1
.
add_parameter
(
"x"
,
outer
);
auto
x
=
m1
.
add_parameter
(
"x"
,
x_shape
);
auto
zero
=
m1
.
add_literal
({
inner
,
{
0
,
0
}});
auto
zero
=
m1
.
add_literal
({
zero_shape
,
{
0
,
0
}});
auto
zerob
=
m1
.
add_instruction
(
b
,
zero
);
auto
zerob
=
m1
.
add_instruction
(
b
,
zero
);
auto
div_ins
=
m1
.
add_instruction
(
migraphx
::
make_op
(
"div"
),
zerob
,
x
);
auto
div_ins
=
m1
.
add_instruction
(
migraphx
::
make_op
(
"div"
),
zerob
,
x
);
m1
.
add_return
({
div_ins
});
m1
.
add_return
({
div_ins
});
...
@@ -1298,8 +1298,8 @@ TEST_CASE(simplify_zero_div_const_vec)
...
@@ -1298,8 +1298,8 @@ TEST_CASE(simplify_zero_div_const_vec)
migraphx
::
module
m2
;
migraphx
::
module
m2
;
{
{
m2
.
add_parameter
(
"x"
,
outer
);
m2
.
add_parameter
(
"x"
,
x_shape
);
auto
zero
=
m2
.
add_literal
({
inner
,
{
0
,
0
}});
auto
zero
=
m2
.
add_literal
({
zero_shape
,
{
0
,
0
}});
auto
zerob
=
m2
.
add_instruction
(
b
,
zero
);
auto
zerob
=
m2
.
add_instruction
(
b
,
zero
);
m2
.
add_return
({
zerob
});
m2
.
add_return
({
zerob
});
}
}
...
...
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