Commit d20bd8a1 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

Merge branch 'develop' of https://github.com/ROCmSoftwarePlatform/AMDMIGraphX into test_bert

parents 96ca7a5e 21d4395e
......@@ -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);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment