Commit ec205c54 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 1da02b0f
......@@ -157,8 +157,8 @@ void softmax(hipStream_t stream, const argument& result, const argument& arg, in
auto in_type = result.get_shape().type();
if(in_type == shape::half_type and batch_item_num <= 1024)
{
int block_num = batch_shape.elements();
int shared_size = batch_item_num * 2 * result.get_shape().type_size();
int block_num = batch_shape.elements();
int shared_size = batch_item_num * 2 * result.get_shape().type_size();
auto half2_block_size = block_size / 4;
softmax_kernel<<<block_num, half2_block_size, shared_size, stream>>>(
arg.data(), batch_item_num, half2_block_size, result.data());
......
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