Differentiable architecture search for convolutional and recurrent networks