FAT: An In-Memory Accelerator with Fast Addition for Ternary Weight Neural Networks