vit.cpp
vit.cpp copied to clipboard
Bug in vit_image_preprocess_bicubic?
https://github.com/staghado/vit.cpp/blob/a4841f6eeabb91c917e94b8f8f8d4f9e01043fbc/vit.cpp#L268
This looks like a bug. The very first time when {i,j,k,jj}={0,0,0,0} only C[0] is calculated while C[1], C[2], C[3], C[4] are uninitialized. But later in the code d0, d2, d3 and a0 are calculated using C[1], C[2], C[3], C[4]!