In this implementation of GetDataSize()
:
there is this mysterious line:
size *= (arr.dtype.bits * arr.dtype.lanes + 7) / 8;
I was instead expecting the simpler:
size *= (arr.dtype.bits * arr.dtype.lanes);
Can somebody enlighten me as to why the former line (+7 / 8) is doing? Thanks!