In view of many repos only provide caffe prototxt files, here I'm giving the python scripts that generate the files. Although it's the end of year 2018, hoping that there are still many caffe users.
Please refer to the offical caffe installation guide.