No public change
authorA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 4 Jan 2018 22:02:57 +0000 (14:02 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 4 Jan 2018 22:06:37 +0000 (14:06 -0800)
PiperOrigin-RevId: 180842567

tensorflow/BUILD
tensorflow/cc/saved_model/python/BUILD [new file with mode: 0644]
tensorflow/cc/saved_model/python/loader.clif [new file with mode: 0644]
tensorflow/core/platform/default/build_config.bzl

index 86323b0898d14eb9cf5cdcf20c985d95788a4012..3287d0fcdc437a2876b4f68d1ec676fc6e143da0 100644 (file)
@@ -393,6 +393,7 @@ filegroup(
         "//tensorflow/c:all_files",
         "//tensorflow/cc:all_files",
         "//tensorflow/cc/saved_model:all_files",
+        "//tensorflow/cc/saved_model/python:all_files",
         "//tensorflow/compiler/aot:all_files",
         "//tensorflow/compiler/aot/tests:all_files",
         "//tensorflow/compiler/jit:all_files",
diff --git a/tensorflow/cc/saved_model/python/BUILD b/tensorflow/cc/saved_model/python/BUILD
new file mode 100644 (file)
index 0000000..f5fbc75
--- /dev/null
@@ -0,0 +1,30 @@
+# Description:
+# CLIF wrappers for TensorFlow SavedModels.
+
+licenses(["notice"])  # Apache 2.0
+
+package(
+    default_visibility = ["//visibility:public"],
+)
+
+filegroup(
+    name = "all_files",
+    srcs = glob(
+        ["**/*"],
+        exclude = [
+            "**/METADATA",
+            "**/OWNERS",
+        ],
+    ),
+    visibility = ["//tensorflow:__subpackages__"],
+)
+
+load("//tensorflow/core:platform/default/build_config.bzl", "tf_py_clif_cc")
+
+tf_py_clif_cc(
+    name = "loader",
+    srcs = ["loader.clif"],
+    deps = [
+        "//tensorflow/cc/saved_model:loader",
+    ],
+)
diff --git a/tensorflow/cc/saved_model/python/loader.clif b/tensorflow/cc/saved_model/python/loader.clif
new file mode 100644 (file)
index 0000000..b102757
--- /dev/null
@@ -0,0 +1,4 @@
+from "third_party/tensorflow/cc/saved_model/loader.h":
+  namespace `tensorflow`:
+    class SavedModelBundle:
+      def __init__(self)
index b357be8e63600c16e0700402a8b0315ece95d563..942bca6eeccbba36fea903a5e355de53ce58f7b4 100644 (file)
@@ -533,6 +533,9 @@ def tf_additional_gdr_lib_defines():
       "//conditions:default": [],
   })
 
+def tf_py_clif_cc(name, visibility=None, **kwargs):
+  pass
+
 def tf_pyclif_proto_library(name, proto_lib, proto_srcfile="", visibility=None,
                             **kwargs):
   pass