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
cefe7988
Commit
cefe7988
authored
Mar 21, 2023
by
Paul
Browse files
Fix merge conflicts
parent
9bff4331
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
src/include/migraphx/serialize.hpp
src/include/migraphx/serialize.hpp
+0
-27
No files found.
src/include/migraphx/serialize.hpp
View file @
cefe7988
...
...
@@ -93,11 +93,7 @@ auto to_value_impl(rank<4>, const optional<T>& x)
{
value
result
{};
if
(
x
.
has_value
())
<<<<<<<
HEAD
to_value
(
*
x
);
=======
return
to_value
(
*
x
);
>>>>>>>
develop
return
result
;
}
...
...
@@ -211,7 +207,6 @@ void from_value_impl(rank<5>, const value& v, T& x)
template
<
class
T
>
void
from_value_impl
(
rank
<
6
>
,
const
value
&
v
,
optional
<
T
>&
x
)
<<<<<<<
HEAD
{
if
(
not
v
.
is_null
())
x
=
from_value
<
T
>
(
v
);
...
...
@@ -219,45 +214,27 @@ void from_value_impl(rank<6>, const value& v, optional<T>& x)
template
<
class
T
,
MIGRAPHX_REQUIRES
(
std
::
is_arithmetic
<
T
>{})
>
void
from_value_impl
(
rank
<
7
>
,
const
value
&
v
,
T
&
x
)
=======
>>>>>>>
develop
{
if
(
not
v
.
is_null
())
x
=
from_value
<
T
>
(
v
);
}
<<<<<<<
HEAD
template
<
class
T
,
MIGRAPHX_REQUIRES
(
std
::
is_enum
<
T
>{})
>
void
from_value_impl
(
rank
<
8
>
,
const
value
&
v
,
T
&
x
)
=======
template
<
class
T
,
MIGRAPHX_REQUIRES
(
std
::
is_arithmetic
<
T
>{}
or
std
::
is_enum
<
T
>
{})
>
void
from_value_impl
(
rank
<
7
>
,
const
value
&
v
,
T
&
x
)
>>>>>>>
develop
{
x
=
v
.
to
<
T
>
();
}
<<<<<<<
HEAD
inline
void
from_value_impl
(
rank
<
9
>
,
const
value
&
v
,
std
::
string
&
x
)
{
x
=
v
.
to
<
std
::
string
>
();
}
template
<
class
T
>
auto
from_value_impl
(
rank
<
10
>
,
const
value
&
v
,
T
&
x
)
->
decltype
(
x
.
from_value
(
v
),
void
())
=======
inline
void
from_value_impl
(
rank
<
8
>
,
const
value
&
v
,
std
::
string
&
x
)
{
x
=
v
.
to
<
std
::
string
>
();
}
template
<
class
T
>
auto
from_value_impl
(
rank
<
9
>
,
const
value
&
v
,
T
&
x
)
->
decltype
(
x
.
from_value
(
v
),
void
())
>>>>>>>
develop
{
x
.
from_value
(
v
);
}
template
<
class
T
>
<<<<<<<
HEAD
auto
from_value_impl
(
rank
<
11
>
,
const
value
&
v
,
T
&
x
)
->
decltype
(
migraphx_from_value
(
v
,
x
),
void
())
=======
auto
from_value_impl
(
rank
<
10
>
,
const
value
&
v
,
T
&
x
)
->
decltype
(
migraphx_from_value
(
v
,
x
),
void
())
>>>>>>>
develop
{
migraphx_from_value
(
v
,
x
);
}
...
...
@@ -273,11 +250,7 @@ value to_value(const T& x)
template
<
class
T
>
void
from_value
(
const
value
&
v
,
T
&
x
)
{
<<<<<<<
HEAD
detail
::
from_value_impl
(
rank
<
11
>
{},
v
,
x
);
=======
detail
::
from_value_impl
(
rank
<
10
>
{},
v
,
x
);
>>>>>>>
develop
}
}
// namespace MIGRAPHX_INLINE_NS
...
...
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