On-chip training of memristor crossbar based multi-layer neural networks. (August 2017)