• Home
  • Raw
  • Download

Lines Matching refs:wt_bits

604    int wt_bits;  member
1120 int bits_to_read = MIN2(bits_left, 8 + 5*wt_bits); in unpack_weights()
1123 unpack_trit_block(wt_bits, raw, &weights_quant[i]); in unpack_weights()
1131 offset -= 8 + wt_bits * 5; in unpack_weights()
1132 bits_left -= 8 + wt_bits * 5; in unpack_weights()
1140 int bits_to_read = MIN2(bits_left, 7 + 3*wt_bits); in unpack_weights()
1143 unpack_quint_block(wt_bits, raw, &weights_quant[i]); in unpack_weights()
1149 offset -= 7 + wt_bits * 3; in unpack_weights()
1150 bits_left -= 7 + wt_bits * 3; in unpack_weights()
1155 assert((weight_bits % wt_bits) == 0); in unpack_weights()
1157 weights_quant[i] = in.get_bits_rev(offset, wt_bits); in unpack_weights()
1160 in.printf_bits(offset - wt_bits, wt_bits, "weight bits [%d]", weights_quant[i]); in unpack_weights()
1162 offset -= wt_bits; in unpack_weights()
1181 if (wt_bits == 0) { in unquantise_weights()
1186 switch (wt_bits) { in unquantise_weights()
1216 if (wt_bits == 0) { in unquantise_weights()
1221 switch (wt_bits) { in unquantise_weights()
1247 switch (wt_bits) { in unquantise_weights()
1472 …, dual_plane, num_weights, high_prec, wt_range, wt_max, wt_trits, wt_quints, wt_bits, weight_bits); in decode()
1730 wt_bits = 0; in calculate_from_weights()
1734 case 0x2: wt_max = 1; wt_bits = 1; break; in calculate_from_weights()
1736 case 0x4: wt_max = 3; wt_bits = 2; break; in calculate_from_weights()
1738 case 0x6: wt_max = 5; wt_trits = 1; wt_bits = 1; break; in calculate_from_weights()
1739 case 0x7: wt_max = 7; wt_bits = 3; break; in calculate_from_weights()
1745 case 0x2: wt_max = 9; wt_quints = 1; wt_bits = 1; break; in calculate_from_weights()
1746 case 0x3: wt_max = 11; wt_trits = 1; wt_bits = 2; break; in calculate_from_weights()
1747 case 0x4: wt_max = 15; wt_bits = 4; break; in calculate_from_weights()
1748 case 0x5: wt_max = 19; wt_quints = 1; wt_bits = 2; break; in calculate_from_weights()
1749 case 0x6: wt_max = 23; wt_trits = 1; wt_bits = 3; break; in calculate_from_weights()
1750 case 0x7: wt_max = 31; wt_bits = 5; break; in calculate_from_weights()
1756 assert(wt_trits || wt_quints || wt_bits); in calculate_from_weights()
1766 + num_weights * wt_bits; in calculate_from_weights()