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
73ca0f5b
Commit
73ca0f5b
authored
Aug 20, 2019
by
Shucai Xiao
Browse files
clang format
parent
760dd7b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
test/onnx/onnx_test.cpp
test/onnx/onnx_test.cpp
+8
-8
No files found.
test/onnx/onnx_test.cpp
View file @
73ca0f5b
...
@@ -513,9 +513,8 @@ TEST_CASE(shape_gather_test)
...
@@ -513,9 +513,8 @@ TEST_CASE(shape_gather_test)
TEST_CASE
(
transpose_gather_test
)
TEST_CASE
(
transpose_gather_test
)
{
{
migraphx
::
program
p
;
migraphx
::
program
p
;
auto
make_contiguous
=
[
&
p
](
migraphx
::
instruction_ref
ins
)
auto
make_contiguous
=
[
&
p
](
migraphx
::
instruction_ref
ins
)
{
{
if
(
ins
->
get_shape
().
standard
())
if
(
ins
->
get_shape
().
standard
())
{
{
return
ins
;
return
ins
;
}
}
...
@@ -529,7 +528,8 @@ TEST_CASE(transpose_gather_test)
...
@@ -529,7 +528,8 @@ TEST_CASE(transpose_gather_test)
auto
tr_data
=
p
.
add_instruction
(
migraphx
::
op
::
transpose
{{
0
,
2
,
1
,
3
}},
data
);
auto
tr_data
=
p
.
add_instruction
(
migraphx
::
op
::
transpose
{{
0
,
2
,
1
,
3
}},
data
);
auto
tr_ind
=
p
.
add_instruction
(
migraphx
::
op
::
transpose
{{
0
,
2
,
1
,
3
}},
ind
);
auto
tr_ind
=
p
.
add_instruction
(
migraphx
::
op
::
transpose
{{
0
,
2
,
1
,
3
}},
ind
);
int
axis
=
1
;
int
axis
=
1
;
p
.
add_instruction
(
migraphx
::
op
::
gather
{
axis
},
make_contiguous
(
tr_data
),
make_contiguous
(
tr_ind
));
p
.
add_instruction
(
migraphx
::
op
::
gather
{
axis
},
make_contiguous
(
tr_data
),
make_contiguous
(
tr_ind
));
auto
prog
=
migraphx
::
parse_onnx
(
"transpose_gather.onnx"
);
auto
prog
=
migraphx
::
parse_onnx
(
"transpose_gather.onnx"
);
...
...
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