Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
d20bd8a1
Commit
d20bd8a1
authored
Jul 19, 2019
by
Shucai Xiao
Browse files
Merge branch 'develop' of
https://github.com/ROCmSoftwarePlatform/AMDMIGraphX
into test_bert
parents
96ca7a5e
21d4395e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+2
-8
No files found.
src/onnx/onnx.cpp
View file @
d20bd8a1
...
...
@@ -967,15 +967,9 @@ struct onnx_parser
literal
l_out
{};
l_val
.
visit
([
&
](
auto
val
)
{
// this #ifdef is to avoid a false cppcheck error, will remove later
// when a newer version of cppcheck is used
#ifdef CPPCHECK
using
type
=
float
;
#else
using
type
=
std
::
remove_cv_t
<
typename
decltype
(
val
)
::
value_type
>
;
#endif
using
val_type
=
std
::
remove_cv_t
<
typename
decltype
(
val
)
::
value_type
>
;
// l_val contains only one element
std
::
vector
<
type
>
out_vec
(
s
.
elements
(),
*
val
.
begin
());
std
::
vector
<
val_
type
>
out_vec
(
s
.
elements
(),
*
val
.
begin
());
l_out
=
literal
(
s
,
out_vec
);
});
...
...
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