Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Git Select Source Code version

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report