Commit 9e865197 authored by Paul's avatar Paul
Browse files

Formatting

parent e5f07268
...@@ -1011,9 +1011,10 @@ struct onnx_parser ...@@ -1011,9 +1011,10 @@ struct onnx_parser
} }
std::vector<operation> vec_actv_funcs(vec_names.size()); std::vector<operation> vec_actv_funcs(vec_names.size());
std::transform(vec_names.begin(), vec_names.end(), vec_actv_funcs.begin(), [&](const auto& fn) { std::transform(vec_names.begin(),
return map_actv_funcs[fn]; vec_names.end(),
}); vec_actv_funcs.begin(),
[&](const auto& fn) { return map_actv_funcs[fn]; });
// To be added later // To be added later
float clip = 0.0; float clip = 0.0;
...@@ -1127,9 +1128,10 @@ struct onnx_parser ...@@ -1127,9 +1128,10 @@ struct onnx_parser
} }
std::vector<operation> vec_actv_funcs(vec_names.size()); std::vector<operation> vec_actv_funcs(vec_names.size());
std::transform(vec_names.begin(), vec_names.end(), vec_actv_funcs.begin(), [&](const auto& name) { std::transform(vec_names.begin(),
return map_actv_funcs[name]; vec_names.end(),
}); vec_actv_funcs.begin(),
[&](const auto& name) { return map_actv_funcs[name]; });
float clip = 0.0; float clip = 0.0;
if(contains(attributes, "clip")) if(contains(attributes, "clip"))
...@@ -1299,9 +1301,10 @@ struct onnx_parser ...@@ -1299,9 +1301,10 @@ struct onnx_parser
} }
std::vector<operation> vec_actv_funcs(vec_names.size()); std::vector<operation> vec_actv_funcs(vec_names.size());
std::transform(vec_names.begin(), vec_names.end(), vec_actv_funcs.begin(), [&](const auto& name) { std::transform(vec_names.begin(),
return map_actv_funcs[name]; vec_names.end(),
}); vec_actv_funcs.begin(),
[&](const auto& name) { return map_actv_funcs[name]; });
float clip = 0.0; float clip = 0.0;
if(contains(attributes, "clip")) if(contains(attributes, "clip"))
......
...@@ -155,7 +155,7 @@ __device__ void dpp_reduce(T& in, Op op) ...@@ -155,7 +155,7 @@ __device__ void dpp_reduce(T& in, Op op)
__device__ inline void dpp_reduce(float& x, sum) __device__ inline void dpp_reduce(float& x, sum)
{ {
#if defined (MIGRAPHX_USE_CLANG_TIDY) || defined(CPPCHECK) #if defined(MIGRAPHX_USE_CLANG_TIDY) || defined(CPPCHECK)
x = 1; x = 1;
#else #else
__asm__ volatile("s_nop 4\n" __asm__ volatile("s_nop 4\n"
......
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