void compress_int4_weight(void *weight, void *out, int n, int m) { for(int i=0;i> 4); out += sizeof(float); (*(float*)(out)) = (*(float*)(scale_list)) * (((char)((*(unsigned char*)(weight)) << 4))>> 4); out += sizeof(float); weight += sizeof(char); } scale_list += sizeof(float); } }