Transaction-Level Modeling Of Deep Neural Networks For Efficient Parallelism And Memory Accuracy