Coded Deep Learning: Framework and Algorithm