"docs/source/Compression/CompressionReference.rst" did not exist on "e10fc05d76d60b2da6fb1c56086e4062c7098e4b"
Commit 5e8d91c3 authored by Paul's avatar Paul
Browse files

Merge branch 'jit-layernorm' into jit-layernorm-merge

parents 024de2a5 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