Synaptic Transistor Learns While it Computes