Deep Learning for Design and Retrieval of Nano-photonic Structures