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

pass parameters by value

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