Weird “is_xhr” error when deploying Flask app to Heroku

The Werkzeug library (dependency from Flask) recently received a major update (0.16.1 –> 1.0.0) and it looks like Flask (<=0.12.4) does not restrict the version of Werkzeug that is fetched. You have 2 options: Stick with your current version of Flask and restrict the Werkzeug version that is fetched explicitly in your application’s setup.py or … Read more

Where do I get a CPU-only version of PyTorch?

Per the Pytorch website, you can install pytorch-cpu with conda install pytorch-cpu torchvision-cpu -c pytorch You can see from the files on Anaconda cloud, that the size varies between 26 and 56MB depending on the OS where you want to install it. You can get the wheel from http://download.pytorch.org/whl/cpu/. The wheel is 87MB. You can … Read more