Commit 365d3df1 authored by Paul's avatar Paul
Browse files

Merge branch 'jit-layernorm' into bert-opt2

parents f4b87a36 d9867f64
......@@ -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]) / vec.size;
auto nelements = (inputs.back().elements() / inputs[0].lens()[axis]);
auto block_size = compute_block_size(relements, 256);
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