GANDALF: Gated Adaptive Network for Deep Automated Learning of Features