aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/c/BUILD
diff options
context:
space:
mode:
authorGravatar Igor Ganichev <iga@google.com>2017-08-30 21:05:14 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-08-30 21:08:53 -0700
commit9624d165f1f2c717eda96464fee8bf7229cc14f5 (patch)
tree8024d708b58b0c78f19d4c3cfc9f7c4b0c24b70c /tensorflow/c/BUILD
parent424aa9aa9559f6fa29d8ccf3d74ff25528b39209 (diff)
Add function support to Tensorflow C API
This change adds minimal functionality. Support for FunctionOptions, attributes, output name rewriting, function name generation, etc is comming next. PiperOrigin-RevId: 167091238
Diffstat (limited to 'tensorflow/c/BUILD')
-rw-r--r--tensorflow/c/BUILD24
1 files changed, 22 insertions, 2 deletions
diff --git a/tensorflow/c/BUILD b/tensorflow/c/BUILD
index 604dfab148..1822e235eb 100644
--- a/tensorflow/c/BUILD
+++ b/tensorflow/c/BUILD
@@ -45,8 +45,13 @@ tf_cuda_library(
tf_cuda_library(
name = "c_api",
- srcs = ["c_api.cc"],
- hdrs = ["c_api.h"],
+ srcs = [
+ "c_api.cc",
+ "c_api_function.cc",
+ ],
+ hdrs = [
+ "c_api.h",
+ ],
copts = tf_copts(),
visibility = ["//visibility:public"],
deps = select({
@@ -158,6 +163,21 @@ tf_cc_test(
)
tf_cc_test(
+ name = "c_api_function_test",
+ size = "small",
+ srcs = ["c_api_function_test.cc"],
+ deps = [
+ ":c_api",
+ ":c_test_util",
+ "//tensorflow/core:lib",
+ "//tensorflow/core:lib_internal",
+ "//tensorflow/core:protos_all_cc",
+ "//tensorflow/core:test",
+ "//tensorflow/core:test_main",
+ ],
+)
+
+tf_cc_test(
name = "while_loop_test",
size = "small",
srcs = ["while_loop_test.cc"],