Commit 26aa24f8 authored by Paul's avatar Paul
Browse files

Merge branch 'jit-layernorm' into jit-layernorm-unroll

parents 62e8ec20 7b332efc
......@@ -55,7 +55,7 @@ struct layernorm_compiler : compiler<layernorm_compiler>
auto faxis = find_fast_axis({inputs.front()});
vectorize vec{};
// Vectorize if the axis is a reduction axis
if(inputs.back().lens()[faxis] == 1)
if(axis == faxis)
{
vec = vectorize::elements(faxis, inputs);
}
......
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