Commit 7665ca36 authored by Paul's avatar Paul
Browse files

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

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