Commit e22cf227 authored by Paul's avatar Paul
Browse files

Merge

parents 598cd71a 7147acea
......@@ -61,7 +61,7 @@ struct layernorm_compiler : compiler<layernorm_compiler>
}
auto preloads = preload::broadcasts(axis, inputs);
auto relements = inputs[0].lens()[axis] / vec.size;
auto nelements = inputs.back().elements() / inputs[0].lens()[axis];
auto nelements = (inputs.back().elements() / inputs[0].lens()[axis]) / vec.size;
auto block_size = compute_block_size(relements, 512);
hip_compile_options options;
options.set_launch_params(
......
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