Commit ceea9124 authored by Khalique's avatar Khalique
Browse files

changed variables to values

parent 65fda205
...@@ -146,8 +146,8 @@ struct clip_op ...@@ -146,8 +146,8 @@ struct clip_op
std::string name() const { return "cpu::clip"; } std::string name() const { return "cpu::clip"; }
auto fcn() const auto fcn() const
{ {
auto& max = op.max_val; auto max = op.max_val;
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