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
aa29aa1f
Commit
aa29aa1f
authored
Nov 01, 2022
by
charlie
Browse files
Fix ndim test bug
parent
fd3e9205
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/shape_test.cpp
test/shape_test.cpp
+2
-2
No files found.
test/shape_test.cpp
View file @
aa29aa1f
...
@@ -194,7 +194,7 @@ TEST_CASE(test_shape_ndim_static)
...
@@ -194,7 +194,7 @@ TEST_CASE(test_shape_ndim_static)
EXPECT
(
s1
.
ndim
()
==
4
);
EXPECT
(
s1
.
ndim
()
==
4
);
migraphx
::
shape
s2
{
migraphx
::
shape
::
float_type
,
{
2
,
4
,
4
,
1
,
3
}};
migraphx
::
shape
s2
{
migraphx
::
shape
::
float_type
,
{
2
,
4
,
4
,
1
,
3
}};
EXPECT
(
s
1
.
ndim
()
==
5
);
EXPECT
(
s
2
.
ndim
()
==
5
);
}
}
TEST_CASE
(
test_shape_ndim_dyn
)
TEST_CASE
(
test_shape_ndim_dyn
)
...
@@ -207,7 +207,7 @@ TEST_CASE(test_shape_ndim_dyn)
...
@@ -207,7 +207,7 @@ TEST_CASE(test_shape_ndim_dyn)
migraphx
::
shape
s2
{
migraphx
::
shape
::
float_type
,
migraphx
::
shape
s2
{
migraphx
::
shape
::
float_type
,
{{
1
,
1
,
0
},
{
2
,
4
,
0
},
{
2
,
4
,
0
},
{
1
,
1
,
1
},
{
3
,
3
,
0
}}};
{{
1
,
1
,
0
},
{
2
,
4
,
0
},
{
2
,
4
,
0
},
{
1
,
1
,
1
},
{
3
,
3
,
0
}}};
EXPECT
(
s
1
.
ndim
()
==
5
);
EXPECT
(
s
2
.
ndim
()
==
5
);
}
}
TEST_CASE
(
test_shape_non_packed_single_dim
)
TEST_CASE
(
test_shape_non_packed_single_dim
)
...
...
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