Commit 33c69d55 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 445c5ed3
...@@ -20,8 +20,8 @@ void convert(hipStream_t stream, ...@@ -20,8 +20,8 @@ void convert(hipStream_t stream,
if(target_type == shape::int8_type) if(target_type == shape::int8_type)
{ {
gs_launch(stream, result.get_shape().elements())([=](auto i) { gs_launch(stream, result.get_shape().elements())([=](auto i) {
output_ptr[i] = output_ptr[i] = std::min<int8_t>(
std::min<int8_t>(std::max<float>(-128, input_ptr[i] * scale + shift + 0.5), 127); std::max<float>(-128, input_ptr[i] * scale + shift + 0.5), 127);
}); });
} }
else else
......
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