A method for training a Boolean
deep learning model (308, 408, 608), performed by a processor device (302, 402, 510, 602), is provided. The method involves receiving a request from a Boolean
deep learning application (306, 406, 512, 606) to instantiate a multi-dimensional Boolean
matrix array (414, 502) comprising binary values representing the model's weights or biases. A sequence of matrix arithmetic operations is then received, detailing tasks to be performed on this Boolean
matrix array. For each operation in the sequence, the method determines whether the bit data's memory
layout (310, 410, 520) needs reordering into a different bit vectorization dimension. If reordering is required, the method converts the current bit
data layout accordingly. Following each conversion, the method updates the indicative bit vectorization parameters to reflect the new
layout. This dynamic adjustment ensures optimal memory utilization and computational efficiency throughout the training process, improving the performance of the Boolean
deep learning model.