serhii.net

In the middle of the desert you can say anything you want

16 Feb 2021

Day 777

matplotlib/pyplot invert/reverse axis

Unsurprisingly intuitive:

ax.set_ylim(1, 0)

(of course, problematic if you don’t know your actual limit)

EDIT Mi 10 Mär 2021 19:23:20 CET: There’s an even better solution! 1

ax.invert_yaxis()

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 https://download.pytorch.org/whl/cu100/torch_stable.html

Testing installation and GPU:

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

torch.cuda.is_available()
Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus