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
913ae362
Unverified
Commit
913ae362
authored
Dec 13, 2022
by
Chris Austen
Committed by
GitHub
Dec 13, 2022
Browse files
Merge branch 'develop' into optimize
parents
f1e16656
b8c8d09b
Changes
66
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1642 additions
and
493 deletions
+1642
-493
test/onnx/transpose_dyn_test.onnx
test/onnx/transpose_dyn_test.onnx
+0
-0
test/op_shape_test.cpp
test/op_shape_test.cpp
+506
-144
test/ref_dot_op_test.cpp
test/ref_dot_op_test.cpp
+125
-18
test/ref_ops_test.cpp
test/ref_ops_test.cpp
+658
-331
test/ref_rnn_ops_test.cpp
test/ref_rnn_ops_test.cpp
+339
-0
test/shape_test.cpp
test/shape_test.cpp
+14
-0
No files found.
test/onnx/transpose_dyn_test.onnx
0 → 100644
View file @
913ae362
File added
test/op_shape_test.cpp
View file @
913ae362
This diff is collapsed.
Click to expand it.
test/ref_dot_op_test.cpp
View file @
913ae362
This diff is collapsed.
Click to expand it.
test/ref_ops_test.cpp
View file @
913ae362
This diff is collapsed.
Click to expand it.
test/ref_rnn_ops_test.cpp
View file @
913ae362
This diff is collapsed.
Click to expand it.
test/shape_test.cpp
View file @
913ae362
...
@@ -160,6 +160,20 @@ TEST_CASE(test_shape_dynamic_compares)
...
@@ -160,6 +160,20 @@ TEST_CASE(test_shape_dynamic_compares)
EXPECT
(
ss0
.
str
()
!=
ss3
.
str
());
EXPECT
(
ss0
.
str
()
!=
ss3
.
str
());
}
}
TEST_CASE
(
dynamic_dimension_size_t_compares
)
{
using
migraphx
::
shape
;
auto
a
=
shape
::
dynamic_dimension
{
2
,
2
,
2
};
EXPECT
(
a
==
2
);
EXPECT
(
a
!=
3
);
EXPECT
(
static_cast
<
std
::
size_t
>
(
2
)
==
a
);
EXPECT
(
static_cast
<
std
::
size_t
>
(
3
)
!=
a
);
auto
b
=
shape
::
dynamic_dimension
{
2
,
4
,
0
};
EXPECT
(
b
!=
2
);
EXPECT
(
static_cast
<
std
::
size_t
>
(
2
)
!=
b
);
}
TEST_CASE
(
test_shape_dynamic_errors
)
TEST_CASE
(
test_shape_dynamic_errors
)
{
{
using
migraphx
::
shape
;
using
migraphx
::
shape
;
...
...
Prev
1
2
3
4
Next
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