Quasi-hyperbolic momentum and Adam for deep learning