Geometric aspects of deep learning