mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 14:50:36 +08:00
PyTorch>1.9 version str
Summary: Make code for downloading linux wheels robust to double-digit PyTorch minor version. Reviewed By: nikhilaravi Differential Revision: D33170562 fbshipit-source-id: 559a97cc98ff8411e235a9f9e29f84b7a400c716
This commit is contained in:
committed by
Facebook GitHub Bot
parent
315f2487db
commit
1152a93b72
@@ -96,10 +96,11 @@ In general, from inside IPython, or in Google Colab or a jupyter notebook, you c
|
||||
```
|
||||
import sys
|
||||
import torch
|
||||
pyt_version_str=torch.__version__.split("+")[0].replace(".", "")
|
||||
version_str="".join([
|
||||
f"py3{sys.version_info.minor}_cu",
|
||||
torch.version.cuda.replace(".",""),
|
||||
f"_pyt{torch.__version__[0:5:2]}"
|
||||
f"_pyt{pyt_version_str}"
|
||||
])
|
||||
!pip install pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/{version_str}/download.html
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user