Convert cold-packed trits to hot-packed trits.
(cold: &[u8], dim: usize)
| 98 | |
| 99 | /// Convert cold-packed trits to hot-packed trits. |
| 100 | pub fn cold_to_hot(cold: &[u8], dim: usize) -> Vec<u8> { |
| 101 | let trits = unpack_cold(cold, dim); |
| 102 | pack_hot(&trits) |
| 103 | } |
| 104 | |
| 105 | /// Quantize a FP32 vector to ternary trits using BitNet absmean scaling. |
| 106 | /// |