Commit Graph

2 Commits

Author SHA1 Message Date
2c0d607882 [bazel] add build for functorch (#101475)
Fixes #101469

Pull Request resolved: https://github.com/pytorch/pytorch/pull/101475
Approved by: https://github.com/ezyang
2023-05-18 20:29:08 +00:00
630593d3cc [bazel] add python targets (#101003)
This PR adds bazel python, so that bazel build could be used from python like `import torch`.

Notable changes:
- Add the python targets.
- Add the version.py.tpl generation.
- In order to archive the `USE_GLOBAL_DEPS = False` just for the bazel build, employ a monkey-patch hack in the mentioned `version.py.tpl`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/101003
Approved by: https://github.com/huydhn
2023-05-12 19:44:01 +00:00