matplotlib/pyplot invert axis

Unsurprisingly intuitive:

ax.set_ylim(1, 0)

Install pytorch on CUDA 10.0 + verify torch/cuda installation

Pytorch officially doesn’t do CUDA 10.0.x, but I found this, worked perfectly: How to Install PyTorch with CUDA 10.0 - VarHowto

Installing: pip install torch==1.4.0 torchvision==0.5.0 -f

Testing installation and GPU:

import torch
x = torch.rand(5, 3)