Design and Implementation of a Domain Specific Language for Deep Learning