aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/util
diff options
context:
space:
mode:
authorGravatar Geoffrey Irving <geoffreyi@google.com>2016-02-08 09:34:09 -0800
committerGravatar Vijay Vasudevan <vrv@google.com>2016-02-08 18:48:43 -0800
commitd797048c6e78d45b22bff31e96bfaaf36780087a (patch)
tree6e2759d37c34a30d59080b276bef946fc069a0e4 /tensorflow/contrib/util
parent59f1eba5fb94506a205fa2e81145667754739da5 (diff)
Remove tf.tensor_util and change tf.unsupported to tf.contrib.util
tf.tensor_util was already not public (not documented), now it is not part of tf.__all__. The one function that was in tf.unsupported is now tf.contrib.util.constant_value, and there is also tf.contrib.util.make_tensor_proto. Change: 114118183
Diffstat (limited to 'tensorflow/contrib/util')
-rw-r--r--tensorflow/contrib/util/BUILD27
-rw-r--r--tensorflow/contrib/util/__init__.py27
2 files changed, 54 insertions, 0 deletions
diff --git a/tensorflow/contrib/util/BUILD b/tensorflow/contrib/util/BUILD
new file mode 100644
index 0000000000..6e517e117b
--- /dev/null
+++ b/tensorflow/contrib/util/BUILD
@@ -0,0 +1,27 @@
+# Description:
+# contains parts of TensorFlow that are experimental or unstable and which are not supported.
+
+licenses(["notice"]) # Apache 2.0
+
+exports_files(["LICENSE"])
+
+package(default_visibility = ["//tensorflow:__subpackages__"])
+
+py_library(
+ name = "util_py",
+ srcs = glob(["**/*.py"]),
+ srcs_version = "PY2AND3",
+ deps = [],
+)
+
+filegroup(
+ name = "all_files",
+ srcs = glob(
+ ["**/*"],
+ exclude = [
+ "**/METADATA",
+ "**/OWNERS",
+ ],
+ ),
+ visibility = ["//tensorflow:__subpackages__"],
+)
diff --git a/tensorflow/contrib/util/__init__.py b/tensorflow/contrib/util/__init__.py
new file mode 100644
index 0000000000..8f6e1900cb
--- /dev/null
+++ b/tensorflow/contrib/util/__init__.py
@@ -0,0 +1,27 @@
+# Copyright 2015 Google Inc. All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ==============================================================================
+
+"""contrib module containing volatile or experimental utility code."""
+
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
+
+# pylint: disable=unused-import
+from tensorflow.python.framework.tensor_util import constant_value
+from tensorflow.python.framework.tensor_util import make_tensor_proto
+
+# TODO(irving): Use make_all here.
+__all__ = ['constant_value', 'make_tensor_proto']