Exposing an image of 128x128 pixels, 8bits, grayscale to a network results in a memory usage of 16 GBytes for the backing array of SparseBinaryMatrix.
I proposal to add a new implementation without the backing array and a new FlatMatrix that use a BitSet for storing binary data.
Exposing an image of 128x128 pixels, 8bits, grayscale to a network results in a memory usage of 16 GBytes for the backing array of
SparseBinaryMatrix.I proposal to add a new implementation without the backing array and a new
FlatMatrixthat use aBitSetfor storing binary data.