Relax the need for only CPU versions of PyTorch (#1505)

* Relax the need for only CPU versions of PyTorch

This allows installing corresponding PyTorch CUDA / ROCM versions and using torch-mlir.

* Remove obsolete comments
pull/1524/head
powderluv 2022-10-24 13:46:31 -07:00 committed by GitHub
parent 470a2f62f3
commit 3f883802e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -155,11 +155,7 @@ setup(
], ],
install_requires=[ install_requires=[
"numpy", "numpy",
# To avoid issues with drift for each nightly build, we pin to the f"torch=={torch.__version__}".split("+", 1)[0],
# exact version we built against.
# TODO: This includes the +cpu specifier which is overly
# restrictive and a bit unfortunate.
f"torch=={torch.__version__}",
], ],
zip_safe=False, zip_safe=False,
) )