Evaluation of STT-MRAM as a Scratchpad for Training in ML Accelerators