Redundancy And Robustness In Deep Learning With Applications To Digital Communications And Magnetic Resonance Imaging