BUG: Updated sparse back propagation to support the cuda matrix format.