I think I found the fix.
The LibTorch link provided by the tutorial is

wget https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip 6

You should change it to

wget https://download.pytorch.org/libtorch/nightly/cu90/libtorch-shared-with-deps-latest.zip 19