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
2ab3644a
Commit
2ab3644a
authored
Aug 10, 2023
by
Paul
Browse files
Format
parent
ccf2420d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/msgpack.cpp
test/msgpack.cpp
+2
-2
No files found.
test/msgpack.cpp
View file @
2ab3644a
...
@@ -48,9 +48,9 @@ auto msgpack_type(migraphx::rank<1>, const T& src) -> decltype(src.empty(), std:
...
@@ -48,9 +48,9 @@ auto msgpack_type(migraphx::rank<1>, const T& src) -> decltype(src.empty(), std:
template
<
class
T
>
template
<
class
T
>
auto
msgpack_type
(
migraphx
::
rank
<
2
>
,
const
std
::
vector
<
T
>&
src
)
auto
msgpack_type
(
migraphx
::
rank
<
2
>
,
const
std
::
vector
<
T
>&
src
)
{
{
using
type
=
decltype
(
msgpack_type
(
migraphx
::
rank
<
2
>
{},
src
.
front
()));
using
type
=
decltype
(
msgpack_type
(
migraphx
::
rank
<
2
>
{},
src
.
front
()));
using
result_type
=
std
::
vector
<
std
::
vector
<
type
>>
;
using
result_type
=
std
::
vector
<
std
::
vector
<
type
>>
;
if
(
src
.
empty
())
if
(
src
.
empty
())
return
result_type
{};
return
result_type
{};
std
::
vector
<
type
>
result
;
std
::
vector
<
type
>
result
;
std
::
transform
(
src
.
begin
(),
src
.
end
(),
std
::
back_inserter
(
result
),
[](
const
auto
&
x
)
{
std
::
transform
(
src
.
begin
(),
src
.
end
(),
std
::
back_inserter
(
result
),
[](
const
auto
&
x
)
{
...
...
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