mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Summary: These files are added to pytorch/pytorch before ExecuTorch is opensourced. Now is a good time to remove it from pytorch/pytorch, since the code is moved to pytorch/executorch already. Test Plan: Rely on CI jobs. Differential Revision: [D75985423](https://our.internmc.facebook.com/intern/diff/D75985423) Pull Request resolved: https://github.com/pytorch/pytorch/pull/154165 Approved by: https://github.com/kimishpatel, https://github.com/Skylion007, https://github.com/cyyever
21 lines
536 B
Python
21 lines
536 B
Python
def define_targets(rules):
|
|
rules.py_library(
|
|
name = "torchgen",
|
|
srcs = rules.glob(["**/*.py"]),
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
rules.requirement("PyYAML"),
|
|
rules.requirement("typing-extensions"),
|
|
],
|
|
)
|
|
|
|
rules.py_binary(
|
|
name = "gen",
|
|
srcs = [":torchgen"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
rules.requirement("PyYAML"),
|
|
rules.requirement("typing-extensions"),
|
|
],
|
|
)
|