mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
This reverts commit f5130bf339f12ccf5c6296130c47685bdc4858e4. Reverted https://github.com/pytorch/pytorch/pull/158720 on behalf of https://github.com/yangw-dev due to this pr failed internally when build torchgen due to rror: fail: Unknown PyPI project: pyyaml, it seems like this is caused by change PyYAML into pyyaml, please fix it ([comment](https://github.com/pytorch/pytorch/pull/158720#issuecomment-3129995414))
18 lines
431 B
Python
18 lines
431 B
Python
def define_targets(rules):
|
|
rules.py_binary(
|
|
name = "generate_code",
|
|
srcs = ["generate_code.py"],
|
|
visibility = ["//:__pkg__"],
|
|
deps = [
|
|
rules.requirement("PyYAML"),
|
|
"//tools/autograd",
|
|
"//torchgen",
|
|
],
|
|
)
|
|
|
|
rules.py_binary(
|
|
name = "gen_version_header",
|
|
srcs = ["gen_version_header.py"],
|
|
visibility = ["//:__pkg__"],
|
|
)
|