Commit a6f56554 authored by Khalique's avatar Khalique
Browse files

formatting

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