It’s amazing. I’m impressed.

!pip3 install --upgrade torch torchvision
Now it’s done.
However, please note that it is not possible to reproduce the problem unless you first remove the kernel and then try again.