Flexible Deep Neural Network Processing