A CNN-based End-to-End Learning for RIS-assisted Communication System