Learning Along the Edge of Deep Neural Networks