Say I have a Torch tensor of integers in a small range 0,...,R
(e.g., R=31).
I want to store to disk in compressed form in a way that is close to the entropy of the vector.
The compression techniques I know (e.g., Huffman and arithmetic coding) all seem to be serial in nature.
- Is there a fast Torch entropy compression implementation?
I'm happy to use an off the shelf implementation, but I can also try to implement myself if someone knows a suitable algorithm.