Deep Learning Based Attack on Phase-Truncated Optical Encoding