mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-18 08:31:31 -05:00
Normalization of indexes in the batching pass currently unconditionally emits arithmetic operations to shift and scale indexes regardless of whether these indexes are already normalized. This leads to unnecessary subtractions with 0 and divisions by 1. This commit introduces two additional checks to the code normalizing indexes that prevent arithmetic operations to be emitted for indexes that do not need to be shifted or scaled.