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
|
# Description:
# BigQueryReader implementation
package(
default_visibility = ["//visibility:public"],
)
licenses(["notice"]) # Apache 2.0
load(
"//tensorflow:tensorflow.bzl",
"tf_gen_op_libs",
"tf_gen_op_wrapper_py",
"tf_py_test",
)
tf_gen_op_libs(
op_lib_names = [
"bigquery_reader_ops",
"gcs_config_ops",
],
deps = [
"//tensorflow/core:lib",
],
)
tf_gen_op_wrapper_py(
name = "gen_bigquery_reader_ops",
out = "python/ops/gen_bigquery_reader_ops.py",
require_shape_functions = True,
deps = [":bigquery_reader_ops_op_lib"],
)
tf_gen_op_wrapper_py(
name = "gen_gcs_config_ops",
out = "python/ops/gen_gcs_config_ops.py",
require_shape_functions = True,
visibility = ["//tensorflow:internal"],
deps = [":gcs_config_ops_op_lib"],
)
py_library(
name = "cloud_py",
srcs = [
"__init__.py",
"python/ops/bigquery_reader_ops.py",
"python/ops/gcs_config_ops.py",
],
srcs_version = "PY2AND3",
deps = [
":gen_bigquery_reader_ops",
":gen_gcs_config_ops",
"//tensorflow/contrib/bigtable",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:io_ops",
"//tensorflow/python:util",
],
)
tf_py_test(
name = "bigquery_reader_ops_test",
size = "small",
srcs = ["python/ops/bigquery_reader_ops_test.py"],
additional_deps = [
":cloud_py",
"//tensorflow/core:protos_all_py",
"//tensorflow/python:array_ops",
"//tensorflow/python:client_testlib",
"//tensorflow/python:data_flow_ops",
"//tensorflow/python:dtypes",
"//tensorflow/python:io_ops",
"//tensorflow/python:parsing_ops",
"//tensorflow/python:platform",
"//tensorflow/python:util",
],
tags = ["manual"],
)
tf_py_test(
name = "gcs_config_ops_test",
size = "small",
srcs = ["python/ops/gcs_config_ops_test.py"],
additional_deps = [
":cloud_py",
"//tensorflow/python:client_testlib",
],
tags = ["manual"],
)
|