Repository navigation
Expand file tree
/
Copy pathBUILD
More file actions
81 lines (73 loc) · 2.21 KB
/
Copy pathBUILD
File metadata and controls
81 lines (73 loc) · 2.21 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
80
81
# Structured Tensors
load("//tensorflow:tensorflow.bzl", "py_test")
package(
default_visibility = [
"//tensorflow:internal",
"//tensorflow:structured_tensor_whitelist",
],
licenses = ["notice"], # Apache 2.0
)
exports_files(["LICENSE"])
py_library(
name = "structured",
srcs = ["__init__.py"],
srcs_version = "PY2AND3",
tags = ["nofixdeps"],
deps = [
":structured_tensor",
],
)
py_library(
name = "structured_tensor",
srcs = ["structured_tensor.py"],
deps = [
"//tensorflow/python:framework_ops",
"//tensorflow/python:tensor_shape",
"//tensorflow/python/ops/ragged:ragged_tensor",
],
)
py_test(
name = "structured_tensor_test",
srcs = ["structured_tensor_test.py"],
python_version = "PY3",
deps = [
":structured_tensor",
"//tensorflow/python:framework_ops",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:sparse_tensor",
"//tensorflow/python:tensor_shape",
"//tensorflow/python/ops/ragged:ragged_factory_ops",
"//tensorflow/python/ops/ragged:ragged_tensor",
"@absl_py//absl/testing:parameterized",
],
)
py_test(
name = "structured_tensor_spec_test",
srcs = ["structured_tensor_spec_test.py"],
python_version = "PY3",
deps = [
":structured_tensor",
"//tensorflow/python:framework_ops",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:sparse_tensor",
"//tensorflow/python:tensor_shape",
"//tensorflow/python/ops/ragged:ragged_factory_ops",
"//tensorflow/python/ops/ragged:ragged_tensor",
"@absl_py//absl/testing:parameterized",
],
)
py_test(
name = "structured_tensor_slice_test",
srcs = ["structured_tensor_slice_test.py"],
python_version = "PY3",
deps = [
":structured_tensor",
"//tensorflow/python:framework_ops",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:sparse_tensor",
"//tensorflow/python:tensor_shape",
"//tensorflow/python/ops/ragged:ragged_factory_ops",
"//tensorflow/python/ops/ragged:ragged_tensor",
"@absl_py//absl/testing:parameterized",
],
)