mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
move Bazel //:tools_autograd to the //tools/autograd package (#74745)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/74745 This is to be consistent with internal builds. ghstack-source-id: 152722873 Test Plan: Rely on CI. Reviewed By: ezyang Differential Revision: D35144475 fbshipit-source-id: f4cea54ceb05cd70de76c7a679466c92d063d15e (cherry picked from commit a52691384ad6773cf6e7ebbb5709a4d2696875e8)
This commit is contained in:
committed by
PyTorch MergeBot
parent
6ccccfcc12
commit
0d7aad822e
12
BUILD.bazel
12
BUILD.bazel
@ -95,16 +95,6 @@ generate_aten(
|
||||
generator = "//tools/codegen:gen",
|
||||
)
|
||||
|
||||
py_library(
|
||||
name = "tools_autograd",
|
||||
srcs = glob(["tools/autograd/*.py"]),
|
||||
data = glob([
|
||||
"tools/autograd/*.yaml",
|
||||
"tools/autograd/templates/*",
|
||||
]),
|
||||
deps = ["//tools/codegen"],
|
||||
)
|
||||
|
||||
py_library(
|
||||
name = "tools_jit",
|
||||
srcs = glob(["tools/jit/*.py"]),
|
||||
@ -115,8 +105,8 @@ py_binary(
|
||||
name = "generate_code",
|
||||
srcs = ["tools/setup_helpers/generate_code.py"],
|
||||
deps = [
|
||||
":tools_autograd",
|
||||
":tools_jit",
|
||||
"//tools/autograd",
|
||||
],
|
||||
)
|
||||
|
||||
|
10
tools/autograd/BUILD.bazel
Normal file
10
tools/autograd/BUILD.bazel
Normal file
@ -0,0 +1,10 @@
|
||||
py_library(
|
||||
name = "autograd",
|
||||
srcs = glob(["*.py"]),
|
||||
data = glob([
|
||||
"*.yaml",
|
||||
"templates/*",
|
||||
]),
|
||||
visibility = ["//:__subpackages__"],
|
||||
deps = ["//tools/codegen"],
|
||||
)
|
Reference in New Issue
Block a user