Gravar-mail: Stochastic Synapses Enable Efficient Brain-Inspired Learning Machines