Commit 6a3637b7 authored by Khalique's avatar Khalique
Browse files

pass parameters by value

parent 5285c349
...@@ -9,8 +9,8 @@ namespace device { ...@@ -9,8 +9,8 @@ namespace device {
void clip(hipStream_t stream, void clip(hipStream_t stream,
const argument& result, const argument& result,
const argument& arg1, const argument& arg1,
const float& max, const float max,
const float& min) const float min)
{ {
nary(stream, result, arg1)( nary(stream, result, arg1)(
[max, min](auto x) { return std::min<decltype(x)>(std::max<decltype(x)>(min, x), max); }); [max, min](auto x) { return std::min<decltype(x)>(std::max<decltype(x)>(min, x), max); });
......
...@@ -13,8 +13,8 @@ namespace device { ...@@ -13,8 +13,8 @@ namespace device {
void clip(hipStream_t stream, void clip(hipStream_t stream,
const argument& result, const argument& result,
const argument& arg1, const argument& arg1,
const float& max, const float max,
const float& min); const float min);
} // namespace device } // namespace device
} // namespace gpu } // namespace gpu
......
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