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
f9691e2e
Commit
f9691e2e
authored
Dec 13, 2023
by
Paul
Browse files
Format
parent
93c89587
Changes
489
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
2 additions
and
62 deletions
+2
-62
test/onnx/parse/qlinearconcat_test.cpp
test/onnx/parse/qlinearconcat_test.cpp
+0
-3
test/onnx/parse/qlinearconv_test.cpp
test/onnx/parse/qlinearconv_test.cpp
+0
-3
test/onnx/parse/qlinearglobalavgpool_test.cpp
test/onnx/parse/qlinearglobalavgpool_test.cpp
+0
-3
test/onnx/parse/qlinearleakyrelu_test.cpp
test/onnx/parse/qlinearleakyrelu_test.cpp
+0
-3
test/onnx/parse/qlinearmatmul_1D_test.cpp
test/onnx/parse/qlinearmatmul_1D_test.cpp
+0
-3
test/onnx/parse/qlinearmatmul_2D_test.cpp
test/onnx/parse/qlinearmatmul_2D_test.cpp
+0
-3
test/onnx/parse/qlinearmul_test.cpp
test/onnx/parse/qlinearmul_test.cpp
+0
-3
test/onnx/parse/qlinearsigmoid_test.cpp
test/onnx/parse/qlinearsigmoid_test.cpp
+0
-3
test/onnx/parse/quantizelinear_axis_test.cpp
test/onnx/parse/quantizelinear_axis_test.cpp
+0
-3
test/onnx/parse/quantizelinear_int32_test.cpp
test/onnx/parse/quantizelinear_int32_test.cpp
+1
-4
test/onnx/parse/quantizelinear_neg_axis_test.cpp
test/onnx/parse/quantizelinear_neg_axis_test.cpp
+0
-3
test/onnx/parse/quantizelinear_test.cpp
test/onnx/parse/quantizelinear_test.cpp
+1
-4
test/onnx/parse/quantizelinear_zero_point_test.cpp
test/onnx/parse/quantizelinear_zero_point_test.cpp
+0
-3
test/onnx/parse/randomnormal_dtype_error_test.cpp
test/onnx/parse/randomnormal_dtype_error_test.cpp
+0
-3
test/onnx/parse/randomnormal_generated_seed_test.cpp
test/onnx/parse/randomnormal_generated_seed_test.cpp
+0
-3
test/onnx/parse/randomnormal_shape_error_test.cpp
test/onnx/parse/randomnormal_shape_error_test.cpp
+0
-3
test/onnx/parse/randomnormal_test.cpp
test/onnx/parse/randomnormal_test.cpp
+0
-3
test/onnx/parse/randomnormallike_test.cpp
test/onnx/parse/randomnormallike_test.cpp
+0
-3
test/onnx/parse/randomnormallike_type_error_test.cpp
test/onnx/parse/randomnormallike_type_error_test.cpp
+0
-3
test/onnx/parse/randomuniform_dtype_error_test.cpp
test/onnx/parse/randomuniform_dtype_error_test.cpp
+0
-3
No files found.
test/onnx/parse/qlinearconcat_test.cpp
View file @
f9691e2e
#include <onnx_test.hpp>
TEST_CASE
(
qlinearconcat_test
)
{
migraphx
::
program
p
;
...
...
@@ -54,5 +53,3 @@ TEST_CASE(qlinearconcat_test)
EXPECT
(
p
==
prog
);
}
test/onnx/parse/qlinearconv_test.cpp
View file @
f9691e2e
#include <onnx_test.hpp>
TEST_CASE
(
qlinearconv_test
)
{
migraphx
::
program
p
;
...
...
@@ -56,5 +55,3 @@ TEST_CASE(qlinearconv_test)
EXPECT
(
p
.
sort
()
==
prog
.
sort
());
}
test/onnx/parse/qlinearglobalavgpool_test.cpp
View file @
f9691e2e
...
...
@@ -2,7 +2,6 @@
#include <onnx_test.hpp>
#include <migraphx/op/pooling.hpp>
TEST_CASE
(
qlinearglobalavgpool_test
)
{
migraphx
::
program
p
;
...
...
@@ -47,5 +46,3 @@ TEST_CASE(qlinearglobalavgpool_test)
EXPECT
(
p
.
sort
()
==
prog
.
sort
());
}
test/onnx/parse/qlinearleakyrelu_test.cpp
View file @
f9691e2e
#include <onnx_test.hpp>
TEST_CASE
(
qlinearleakyrelu_test
)
{
migraphx
::
program
p
;
...
...
@@ -41,5 +40,3 @@ TEST_CASE(qlinearleakyrelu_test)
EXPECT
(
p
.
sort
()
==
prog
.
sort
());
}
test/onnx/parse/qlinearmatmul_1D_test.cpp
View file @
f9691e2e
#include <onnx_test.hpp>
TEST_CASE
(
qlinearmatmul_1D_test
)
{
migraphx
::
program
p
;
...
...
@@ -60,5 +59,3 @@ TEST_CASE(qlinearmatmul_1D_test)
EXPECT
(
p
.
sort
()
==
prog
.
sort
());
}
test/onnx/parse/qlinearmatmul_2D_test.cpp
View file @
f9691e2e
#include <onnx_test.hpp>
TEST_CASE
(
qlinearmatmul_2D_test
)
{
migraphx
::
program
p
;
...
...
@@ -54,5 +53,3 @@ TEST_CASE(qlinearmatmul_2D_test)
EXPECT
(
p
.
sort
()
==
prog
.
sort
());
}
test/onnx/parse/qlinearmul_test.cpp
View file @
f9691e2e
#include <onnx_test.hpp>
TEST_CASE
(
qlinearmul_test
)
{
migraphx
::
program
p
;
...
...
@@ -54,5 +53,3 @@ TEST_CASE(qlinearmul_test)
EXPECT
(
p
.
sort
()
==
prog
.
sort
());
}
test/onnx/parse/qlinearsigmoid_test.cpp
View file @
f9691e2e
#include <onnx_test.hpp>
TEST_CASE
(
qlinearsigmoid_test
)
{
migraphx
::
program
p
;
...
...
@@ -41,5 +40,3 @@ TEST_CASE(qlinearsigmoid_test)
EXPECT
(
p
.
sort
()
==
prog
.
sort
());
}
test/onnx/parse/quantizelinear_axis_test.cpp
View file @
f9691e2e
...
...
@@ -2,7 +2,6 @@
#include <onnx_test.hpp>
#include <onnx_test_utils.hpp>
TEST_CASE
(
quantizelinear_axis_test
)
{
migraphx
::
program
p
=
make_quantizelinear_axis_prog
();
...
...
@@ -10,5 +9,3 @@ TEST_CASE(quantizelinear_axis_test)
auto
prog
=
optimize_onnx
(
"quantizelinear_axis_test.onnx"
,
true
);
EXPECT
(
p
.
sort
()
==
prog
.
sort
());
}
test/onnx/parse/quantizelinear_int32_test.cpp
View file @
f9691e2e
...
...
@@ -2,7 +2,6 @@
#include <onnx_test.hpp>
#include <onnx_test_utils.hpp>
TEST_CASE
(
quantizelinear_int32_test
)
{
migraphx
::
program
p
;
...
...
@@ -15,7 +14,7 @@ TEST_CASE(quantizelinear_int32_test)
migraphx
::
make_op
(
"convert"
,
{{
"target_type"
,
migraphx
::
to_value
(
migraphx
::
shape
::
float_type
)}}),
l0
);
auto
div
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"div"
),
l0
,
l1_mbcast
);
auto
div
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"div"
),
l0
,
l1_mbcast
);
auto
nearbyint
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"nearbyint"
),
div
);
auto
s
=
nearbyint
->
get_shape
();
auto
clip
=
insert_quantizelinear_clip
(
*
mm
,
div
,
nearbyint
,
s
,
0
,
255
);
...
...
@@ -27,5 +26,3 @@ TEST_CASE(quantizelinear_int32_test)
auto
prog
=
optimize_onnx
(
"quantizelinear_int32_test.onnx"
,
true
);
EXPECT
(
p
.
sort
()
==
prog
.
sort
());
}
test/onnx/parse/quantizelinear_neg_axis_test.cpp
View file @
f9691e2e
...
...
@@ -2,7 +2,6 @@
#include <onnx_test.hpp>
#include <onnx_test_utils.hpp>
TEST_CASE
(
quantizelinear_neg_axis_test
)
{
migraphx
::
program
p
=
make_quantizelinear_axis_prog
();
...
...
@@ -10,5 +9,3 @@ TEST_CASE(quantizelinear_neg_axis_test)
auto
prog
=
optimize_onnx
(
"quantizelinear_neg_axis_test.onnx"
,
true
);
EXPECT
(
p
.
sort
()
==
prog
.
sort
());
}
test/onnx/parse/quantizelinear_test.cpp
View file @
f9691e2e
...
...
@@ -2,7 +2,6 @@
#include <onnx_test.hpp>
#include <onnx_test_utils.hpp>
TEST_CASE
(
quantizelinear_test
)
{
migraphx
::
program
p
;
...
...
@@ -11,7 +10,7 @@ TEST_CASE(quantizelinear_test)
auto
l1
=
mm
->
add_parameter
(
"1"
,
{
migraphx
::
shape
::
float_type
,
{
1
}});
auto
l1_mbcast
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"multibroadcast"
,
{{
"out_lens"
,
{
5
}}}),
l1
);
auto
div
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"div"
),
l0
,
l1_mbcast
);
auto
div
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"div"
),
l0
,
l1_mbcast
);
auto
nearbyint
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"nearbyint"
),
div
);
auto
s
=
nearbyint
->
get_shape
();
auto
clip
=
insert_quantizelinear_clip
(
*
mm
,
div
,
nearbyint
,
s
,
0
,
255
);
...
...
@@ -23,5 +22,3 @@ TEST_CASE(quantizelinear_test)
auto
prog
=
optimize_onnx
(
"quantizelinear_test.onnx"
,
true
);
EXPECT
(
p
.
sort
()
==
prog
.
sort
());
}
test/onnx/parse/quantizelinear_zero_point_test.cpp
View file @
f9691e2e
...
...
@@ -2,7 +2,6 @@
#include <onnx_test.hpp>
#include <onnx_test_utils.hpp>
TEST_CASE
(
quantizelinear_zero_point_test
)
{
migraphx
::
program
p
;
...
...
@@ -31,5 +30,3 @@ TEST_CASE(quantizelinear_zero_point_test)
auto
prog
=
optimize_onnx
(
"quantizelinear_zero_point_test.onnx"
,
true
);
EXPECT
(
p
.
sort
()
==
prog
.
sort
());
}
test/onnx/parse/randomnormal_dtype_error_test.cpp
View file @
f9691e2e
#include <onnx_test.hpp>
TEST_CASE
(
randomnormal_dtype_error_test
)
{
EXPECT
(
test
::
throws
([
&
]
{
migraphx
::
parse_onnx
(
"randomnormal_dtype_error_test.onnx"
);
}));
}
test/onnx/parse/randomnormal_generated_seed_test.cpp
View file @
f9691e2e
#include <onnx_test.hpp>
TEST_CASE
(
randomnormal_generated_seed_test
)
{
auto
p1
=
optimize_onnx
(
"randomnormal_generated_seed_test.onnx"
);
...
...
@@ -9,5 +8,3 @@ TEST_CASE(randomnormal_generated_seed_test)
EXPECT
(
p1
!=
p2
);
}
test/onnx/parse/randomnormal_shape_error_test.cpp
View file @
f9691e2e
#include <onnx_test.hpp>
TEST_CASE
(
randomnormal_shape_error_test
)
{
EXPECT
(
test
::
throws
([
&
]
{
migraphx
::
parse_onnx
(
"randomnormal_shape_error_test.onnx"
);
}));
}
test/onnx/parse/randomnormal_test.cpp
View file @
f9691e2e
...
...
@@ -2,7 +2,6 @@
#include <onnx_test.hpp>
#include <random>
TEST_CASE
(
randomnormal_test
)
{
float
mean
=
10.0
;
...
...
@@ -25,5 +24,3 @@ TEST_CASE(randomnormal_test)
EXPECT
(
p
==
prog
);
}
test/onnx/parse/randomnormallike_test.cpp
View file @
f9691e2e
...
...
@@ -2,7 +2,6 @@
#include <onnx_test.hpp>
#include <random>
TEST_CASE
(
randomnormallike_test
)
{
float
mean
=
10.0
;
...
...
@@ -26,5 +25,3 @@ TEST_CASE(randomnormallike_test)
EXPECT
(
p
==
prog
);
}
test/onnx/parse/randomnormallike_type_error_test.cpp
View file @
f9691e2e
#include <onnx_test.hpp>
TEST_CASE
(
randomnormallike_type_error_test
)
{
EXPECT
(
test
::
throws
([
&
]
{
migraphx
::
parse_onnx
(
"randomnormallike_type_error_test.onnx"
);
}));
}
test/onnx/parse/randomuniform_dtype_error_test.cpp
View file @
f9691e2e
#include <onnx_test.hpp>
TEST_CASE
(
randomuniform_dtype_error_test
)
{
EXPECT
(
test
::
throws
([
&
]
{
migraphx
::
parse_onnx
(
"randomuniform_dtype_error_test.onnx"
);
}));
}
Prev
1
…
13
14
15
16
17
18
19
20
21
…
25
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