Text this: Simulation of In-Situ Training in Spike Neural Network Based on Non-Ideal Memristors