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
11a21a09
Commit
11a21a09
authored
Oct 31, 2022
by
charlie
Browse files
formatting
parent
e435153e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
src/shape.cpp
src/shape.cpp
+1
-2
test/ref_ops_test.cpp
test/ref_ops_test.cpp
+1
-1
test/shape_test.cpp
test/shape_test.cpp
+2
-1
No files found.
src/shape.cpp
View file @
11a21a09
...
@@ -507,8 +507,7 @@ bool shape::dynamic_dimension::has_optimal() const { return opt != 0; }
...
@@ -507,8 +507,7 @@ bool shape::dynamic_dimension::has_optimal() const { return opt != 0; }
bool
operator
==
(
const
shape
::
dynamic_dimension
&
x
,
const
shape
::
dynamic_dimension
&
y
)
bool
operator
==
(
const
shape
::
dynamic_dimension
&
x
,
const
shape
::
dynamic_dimension
&
y
)
{
{
// don't check opt if both are fixed
// don't check opt if both are fixed
return
(
x
.
min
==
y
.
min
and
return
(
x
.
min
==
y
.
min
and
x
.
max
==
y
.
max
and
x
.
max
==
y
.
max
and
((
x
.
is_fixed
()
and
y
.
is_fixed
())
or
(
x
.
opt
==
y
.
opt
)));
((
x
.
is_fixed
()
and
y
.
is_fixed
())
or
(
x
.
opt
==
y
.
opt
)));
}
}
...
...
test/ref_ops_test.cpp
View file @
11a21a09
...
@@ -1884,7 +1884,7 @@ TEST_CASE(div_test)
...
@@ -1884,7 +1884,7 @@ TEST_CASE(div_test)
EXPECT(migraphx::verify_range(results_vector, gold));
EXPECT(migraphx::verify_range(results_vector, gold));
}
}
TEST_CASE(div_dyn
amic
_test)
TEST_CASE(div_dyn_test)
{
{
migraphx::program p;
migraphx::program p;
auto* mm = p.get_main_module();
auto* mm = p.get_main_module();
...
...
test/shape_test.cpp
View file @
11a21a09
...
@@ -205,7 +205,8 @@ TEST_CASE(test_shape_ndim_dyn)
...
@@ -205,7 +205,8 @@ TEST_CASE(test_shape_ndim_dyn)
migraphx
::
shape
s1
{
migraphx
::
shape
::
float_type
,
{{
1
,
1
,
0
},
{
2
,
4
,
0
},
{
2
,
4
,
0
},
{
2
,
4
,
0
}}};
migraphx
::
shape
s1
{
migraphx
::
shape
::
float_type
,
{{
1
,
1
,
0
},
{
2
,
4
,
0
},
{
2
,
4
,
0
},
{
2
,
4
,
0
}}};
EXPECT
(
s1
.
ndim
()
==
4
);
EXPECT
(
s1
.
ndim
()
==
4
);
migraphx
::
shape
s2
{
migraphx
::
shape
::
float_type
,
{{
1
,
1
,
0
},
{
2
,
4
,
0
},
{
2
,
4
,
0
},
{
1
,
1
,
1
},
{
3
,
3
,
0
}}};
migraphx
::
shape
s2
{
migraphx
::
shape
::
float_type
,
{{
1
,
1
,
0
},
{
2
,
4
,
0
},
{
2
,
4
,
0
},
{
1
,
1
,
1
},
{
3
,
3
,
0
}}};
EXPECT
(
s1
.
ndim
()
==
5
);
EXPECT
(
s1
.
ndim
()
==
5
);
}
}
...
...
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