Adaptive Neural Networks