Modeling Inference Time of Deep Neural Networks on Memory-constrained Systems