Repository navigation
Expand file tree
/
Copy pathBUILD
More file actions
79 lines (73 loc) · 1.81 KB
/
Copy pathBUILD
File metadata and controls
79 lines (73 loc) · 1.81 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
load("//tensorflow:tensorflow.bzl", "tf_py_test")
package(
licenses = ["notice"], # Apache 2.0
)
filegroup(
name = "all_files",
srcs = glob(
["**/*"],
exclude = [
"**/METADATA",
"**/OWNERS",
],
),
visibility = ["//tensorflow:__subpackages__"],
)
py_library(
name = "impl",
srcs = [
"api.py",
"conversion.py",
],
srcs_version = "PY2AND3",
visibility = ["//tensorflow:__subpackages__"],
deps = [
"//tensorflow/python:platform",
"//tensorflow/python:util",
"//tensorflow/python/autograph/converters",
"//tensorflow/python/autograph/core",
"//tensorflow/python/autograph/operators",
"//tensorflow/python/autograph/pyct",
"//tensorflow/python/autograph/pyct/static_analysis",
"//tensorflow/python/autograph/utils",
"@gast_archive//:gast",
],
)
tf_py_test(
name = "api_test",
srcs = ["api_test.py"],
deps = [
":impl",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/core:test_lib",
"//tensorflow/python/autograph/utils",
"//third_party/py/numpy",
],
)
py_test(
name = "api_py3_test",
srcs = ["api_py3_test.py"],
python_version = "PY3",
srcs_version = "PY3",
tags = [
"no_oss_py2",
"no_pip",
"nopip",
],
deps = [
":impl",
"//tensorflow/python:client_testlib",
"//tensorflow/python:constant_op",
"//tensorflow/python/autograph/core",
],
)
tf_py_test(
name = "conversion_test",
srcs = ["conversion_test.py"],
deps = [
":impl",
"//tensorflow/python:client_testlib",
"//tensorflow/python/autograph/impl/testing:pybind_for_testing",
"@gast_archive//:gast",
],
)