Sparse neuromorphic computing based on spin-torque diodes