Unsupervised local learning based on voltage-dependent synaptic plasticity for resistive and ferroelectric synapses | Synapse