Applications of deep learning in astronomy