Empirical metal-oxide RRAM device endurance and retention model for deep learning simulations. (21st April 2021)