From: MaximMolchanov Date: Mon, 11 Jan 2021 05:49:41 +0000 (+0200) Subject: Affine transform robust implementation X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=303713b560e356a902c1830bce205716cef54a44;hp=303713b560e356a902c1830bce205716cef54a44 Affine transform robust implementation Size of the weights in the last layer is less than 512 bits. It leads to wrong data access for AVX512. There is no error because in current implementation it is guaranteed that there is an array of zeros after weights so zero multiplied by something is returned and sum is correct. It is a mistake that can lead to unexpected bugs in the future. Used AVX2 instructions for smaller input size. No measurable slowdown on avx512. closes https://github.com/official-stockfish/Stockfish/pull/3298 No functional change. ---