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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
# Description:
# Contains ops to build an input pipeline for tensorflow.
# APIs here are meant to evolve over time.
licenses(["notice"]) # Apache 2.0
exports_files(["LICENSE"])
package(default_visibility = ["//visibility:public"])
load(
"//tensorflow:tensorflow.bzl",
"py_test",
"tf_custom_op_library",
"tf_cc_tests",
"tf_gen_op_libs",
"tf_gen_op_wrapper_py",
"tf_kernel_library",
)
load(
"//tensorflow/core:platform/default/build_config.bzl",
"tf_kernel_tests_linkstatic",
)
load("//tensorflow:tensorflow.bzl", "tf_custom_op_py_library")
tf_custom_op_library(
# TODO(sibyl-Mooth6ku,ptucker): Understand why 'python/ops/_' is needed and fix it.
name = "python/ops/_input_pipeline_ops.so",
srcs = [
"ops/input_pipeline_ops.cc",
],
deps = [
"//tensorflow/contrib/input_pipeline/kernels:input_pipeline_kernels",
],
)
tf_gen_op_libs(
op_lib_names = ["input_pipeline_ops"],
)
tf_gen_op_wrapper_py(
name = "input_pipeline_ops",
deps = [":input_pipeline_ops_op_lib"],
)
tf_kernel_library(
name = "input_pipeline_ops_kernels",
deps = [
"//tensorflow/contrib/input_pipeline/kernels:input_pipeline_kernels",
"//tensorflow/core:framework",
],
alwayslink = 1,
)
tf_custom_op_py_library(
name = "input_pipeline_py",
srcs = glob(["python/ops/*.py"]) + ["__init__.py"],
dso = [":python/ops/_input_pipeline_ops.so"],
kernels = [
":input_pipeline_ops_kernels",
":input_pipeline_ops_op_lib",
],
srcs_version = "PY2AND3",
deps = [
":input_pipeline_ops",
"//tensorflow/contrib/util:util_py",
"//tensorflow/python:client_testlib",
"//tensorflow/python:errors",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:platform",
"//tensorflow/python:state_ops",
"//tensorflow/python:util",
"//tensorflow/python:variable_scope",
"//tensorflow/python:variables",
],
)
py_test(
name = "input_pipeline_ops_test",
size = "small",
srcs = ["python/ops/input_pipeline_ops_test.py"],
srcs_version = "PY2AND3",
deps = [
":input_pipeline_py",
"//tensorflow/python:client_testlib",
"//tensorflow/python:constant_op",
"//tensorflow/python:dtypes",
"//tensorflow/python:errors",
"//tensorflow/python:state_ops",
"//tensorflow/python:variables",
],
)
tf_cc_tests(
name = "input_pipeline_ops_test",
size = "small",
srcs = [
"ops/input_pipeline_ops_test.cc",
],
linkstatic = tf_kernel_tests_linkstatic(),
deps = [
":input_pipeline_ops_op_lib",
"//tensorflow/cc:cc_ops",
"//tensorflow/core",
"//tensorflow/core:core_cpu",
"//tensorflow/core:core_cpu_internal",
"//tensorflow/core:framework",
"//tensorflow/core:framework_internal",
"//tensorflow/core:lib",
"//tensorflow/core:lib_internal",
"//tensorflow/core:ops",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"//tensorflow/core:testlib",
],
)
|