EBPC: Extended Bit-Plane Compression for Deep Neural Network Inference and Training Accelerators