'How to import PyTorch as an external dependency to a Python project in Bazel

I want to import PyTorch as an external dependency to my Python project in Bazel.

How could I configure my WORKSPACE and how I can refer to it?

Thanks a lot.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source