Skip to content

Commit 78c1538

Browse files
authored
fix ROCm deselection (#56)
1 parent 77be06b commit 78c1538

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

light_the_torch/_patch.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,11 @@ def preprocessing(input):
244244
input.candidates = [
245245
candidate
246246
for candidate in input.candidates
247-
if candidate.version.local is not None
248-
and "rocm" not in candidate.version.local
247+
if candidate.name not in PYTORCH_DISTRIBUTIONS
248+
or (
249+
candidate.version.local is not None
250+
and "rocm" not in candidate.version.local
251+
)
249252
]
250253
return input
251254

0 commit comments

Comments
 (0)