"git@developer.sourcefind.cn:modelzoo/ridcp_pytorch.git" did not exist on "8f9687f5d3cc36609cbe621a48f6717c95acc512"
Commit 7184794d authored by Paul's avatar Paul
Browse files

Format

parent becfa5b2
...@@ -126,7 +126,7 @@ struct fused_reduce_compiler : compiler<fused_reduce_compiler> ...@@ -126,7 +126,7 @@ struct fused_reduce_compiler : compiler<fused_reduce_compiler>
// Vectorize if the axis is a reduction axis // Vectorize if the axis is a reduction axis
if(options.virtual_inputs.back().lens()[faxis] == 1) if(options.virtual_inputs.back().lens()[faxis] == 1)
vec = vectorize::elements(ctx, faxis, options.virtual_inputs); vec = vectorize::elements(ctx, faxis, options.virtual_inputs);
auto relements = reduced_shape.elements() / vec.size; auto relements = reduced_shape.elements() / vec.size;
auto block_size = compute_block_size(relements, 256); auto block_size = compute_block_size(relements, 256);
options.set_launch_params( options.set_launch_params(
v, compute_global_for(ctx, nelements * block_size, 256), block_size); v, compute_global_for(ctx, nelements * block_size, 256), block_size);
......
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