An important avenue for information processing, especially at the edge of limited resources, is to develop neuromorphic devices with functions similar to biological neural networks.