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
0a4583b7
Commit
0a4583b7
authored
Nov 05, 2018
by
wsttiger
Browse files
fixed warnings in eliminate_concat_test
parent
ec5b7278
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
test/eliminate_concat_test.cpp
test/eliminate_concat_test.cpp
+6
-6
No files found.
test/eliminate_concat_test.cpp
View file @
0a4583b7
...
...
@@ -13,9 +13,9 @@ struct concat
{
return
op
.
compute_shape
(
inputs
);
}
migraph
::
argument
compute
(
migraph
::
context
&
ctx
,
migraph
::
argument
compute
(
migraph
::
context
&
,
const
migraph
::
shape
&
output_shape
,
const
std
::
vector
<
migraph
::
argument
>&
args
)
const
const
std
::
vector
<
migraph
::
argument
>&
)
const
{
return
{
output_shape
};
}
...
...
@@ -72,7 +72,7 @@ struct fred_op
return
inputs
.
at
(
0
);
}
migraph
::
argument
compute
(
migraph
::
context
&
,
const
migraph
::
shape
&
output_shape
,
const
migraph
::
shape
&
,
const
std
::
vector
<
migraph
::
argument
>&
args
)
const
{
return
args
.
at
(
0
);
...
...
@@ -112,7 +112,7 @@ void basic()
migraph
::
op
::
load
{
migraph
::
shape
{
migraph
::
shape
::
float_type
,
{
1
,
5
,
8
,
8
}},
1280
},
{
a1
});
auto
p3
=
p
.
add_instruction
(
fred_op
{},
l3
);
auto
i1
=
p
.
add_instruction
(
migraph
::
op
::
identity
{},
{
a1
,
p1
,
p2
,
p3
});
auto
p
.
add_instruction
(
migraph
::
op
::
identity
{},
{
a1
,
p1
,
p2
,
p3
});
return
p
;
};
...
...
@@ -139,7 +139,7 @@ void wont_work()
std
::
size_t
axis
=
1
;
auto
a4
=
p
.
add_instruction
(
allocate
{
migraph
::
shape
{
migraph
::
shape
::
float_type
,
{
2
,
10
,
8
,
8
}}});
auto
p4
=
p
.
add_instruction
(
concat
(
axis
),
p1
,
p2
,
p3
,
a4
);
auto
p
.
add_instruction
(
concat
(
axis
),
p1
,
p2
,
p3
,
a4
);
return
p
;
};
auto
create_control_program
=
[]()
{
...
...
@@ -156,7 +156,7 @@ void wont_work()
std
::
size_t
axis
=
1
;
auto
a4
=
p
.
add_instruction
(
allocate
{
migraph
::
shape
{
migraph
::
shape
::
float_type
,
{
2
,
10
,
8
,
8
}}});
auto
p4
=
p
.
add_instruction
(
concat
(
axis
),
p1
,
p2
,
p3
,
a4
);
p
.
add_instruction
(
concat
(
axis
),
p1
,
p2
,
p3
,
a4
);
return
p
;
};
...
...
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