Commit a6f56554 authored by Khalique's avatar Khalique
Browse files

formatting

parent f26d3d2d
......@@ -18,7 +18,6 @@ namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS {
namespace op {
struct clip : unary<clip>
{
float max_val = std::numeric_limits<float>::max();
......@@ -30,9 +29,10 @@ struct clip : unary<clip>
{
auto& max = max_val;
auto& min = min_val;
return [max, min](auto x) {
return [max, min](auto x) {
using type = decltype(x);
return std::min(std::max(type(min), x), type(max)); };
return std::min(std::max(type(min), x), type(max));
};
}
template <class Self, class F>
......
......@@ -148,9 +148,10 @@ struct clip_op
{
auto& max = op.max_val;
auto& min = op.min_val;
return [max, min](auto x) {
return [max, min](auto x) {
using type = decltype(x);
return std::min(std::max(type(min), x), type(max)); };
return std::min(std::max(type(min), x), type(max));
};
}
};
......
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