File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,20 +31,20 @@ namespace internal {
3131 protected:
3232 tensor transform_input (const tensor& in_vol) const override
3333 {
34- if (negative_slope_ == static_cast <float_type>(0 ) &&
35- threshold_ == static_cast <float_type>(0 ) &&
36- max_value_ == std::numeric_limits<float_type>::max ()) {
34+ if (negative_slope_ == static_cast <float_type>(0 ) && threshold_ == static_cast <float_type>(0 ) && max_value_ == std::numeric_limits<float_type>::max ()) {
3735 return transform_tensor ([](float_type x) -> float_type {
3836 return std::max (static_cast <float_type>(0 ), x);
39- }, in_vol);
37+ },
38+ in_vol);
4039 }
4140 return transform_tensor ([&](float_type x) -> float_type {
4241 if (x >= max_value_)
4342 return max_value_;
4443 if (threshold_ <= x && x < max_value_)
4544 return x;
4645 return negative_slope_ * (x - threshold_);
47- }, in_vol);
46+ },
47+ in_vol);
4848 }
4949 float_type max_value_;
5050 float_type negative_slope_;
You can’t perform that action at this time.
0 commit comments