Deep Learning of Microstructures