A 42pJ/decision 3.12TOPS/W robust in-memory machine learning classifier with on-chip training | Synapse