Relaxation And Optimization For Automated Learning Of Neural Network Architectures