forked from pytorch/xla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtorch.BUILD
58 lines (51 loc) · 1.49 KB
/
torch.BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package(
default_visibility = [
"//visibility:public",
],
)
cc_library(
name = "headers",
hdrs = glob(
["torch/include/**/*.h"],
["torch/include/google/protobuf/**/*.h"],
),
strip_include_prefix = "torch/include",
)
# Runtime headers, for importing <torch/torch.h>.
cc_library(
name = "runtime_headers",
hdrs = glob(["torch/include/torch/csrc/api/include/**/*.h"]),
strip_include_prefix = "torch/include/torch/csrc/api/include",
)
filegroup(
name = "torchgen_deps",
srcs = [
"aten/src/ATen/native/native_functions.yaml",
"aten/src/ATen/native/tags.yaml",
"aten/src/ATen/native/ts_native_functions.yaml",
"aten/src/ATen/templates/DispatchKeyNativeFunctions.cpp",
"aten/src/ATen/templates/DispatchKeyNativeFunctions.h",
"aten/src/ATen/templates/LazyIr.h",
"aten/src/ATen/templates/LazyNonNativeIr.h",
"aten/src/ATen/templates/RegisterDispatchDefinitions.ini",
"aten/src/ATen/templates/RegisterDispatchKey.cpp",
"torch/csrc/lazy/core/shape_inference.h",
"torch/csrc/lazy/ts_backend/ts_native_functions.cpp",
],
)
cc_import(
name = "libtorch",
shared_library = "build/lib/libtorch.so",
)
cc_import(
name = "libtorch_cpu",
shared_library = "build/lib/libtorch_cpu.so",
)
cc_import(
name = "libtorch_python",
shared_library = "build/lib/libtorch_python.so",
)
cc_import(
name = "libc10",
shared_library = "build/lib/libc10.so",
)