Two Applications of Deep Learning in the Physical Layer of Communication Systems