Commit 87d6dc3
Fix conda nightly to use the right pytorch nightly version corresponding to each platform (meta-pytorch#662)
Summary:
Fix one TODO in the releng improvement: meta-pytorch#253
Nightly release for TorchData is failing for the last two days because TorchData uses the latest version of PyTorch across platforms including macos, linux and windows. In some cases, like the current [workflow](https://github.com/pytorch/data/actions/runs/2690032872), PyTorch has not been updated nightly for macos with Python 3.7 and 3.9. In this case, TorchData conda release couldn't find the latest version of PyTorch for these two platforms then fail.
I am adding this PR to dynamically detect the versions of PyTorch nightly based on OS (`conda search` would find the packages of the runner's OS by default), CPU/CUDA and Python version.
Pull Request resolved: meta-pytorch#662
Reviewed By: NivekT
Differential Revision: D37926216
Pulled By: ejguan
fbshipit-source-id: 45531a57674815c8ada81e77bee46d8d80e883d81 parent 08f496c commit 87d6dc3
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
158 | 163 | | |
159 | 164 | | |
160 | 165 | | |
| |||
0 commit comments