Get the App
SLTechnology News&Howtos  ›  Servers  › 

Git Select Source Code version

Shulou Source: shulou.com Published: 2022-06-03 07:52:51 12月06日 Update

When installing the old version of pytorch, use git to select the old version of the

Ssudo git clone-- recursive https://github.com/pytorch/pytorch

# this command will download all the version source code, there is a way to download only the specified version, but I have not tried

Cd pytorch # goes to the pytorch directory. There is a .git directory under this directory.

Git tag # displays each version

Sudo git checkout v0.4.1 # Select version

Sudo git submodule update-- init-- recursive # downloads and updates third-party libraries. We need to make sure that all the required third-party libraries are downloaded, otherwise they will be interrupted during compilation.

Tags: Version directory source code selection third party under method command time procedure guarantee update compile Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Microsoft vpn Redmi Shulou Tech Info