aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/coder/BUILD
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-04-23 13:12:58 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-04-23 13:15:36 -0700
commit594c1c60f523ba4dd45545876e850ca7281be73a (patch)
tree6523149700dc1fdaba45460062fd6364c520d0be /tensorflow/contrib/coder/BUILD
parentd9191b881fc283d93a8eaa4961c5e16f2205311f (diff)
Entropy bottleneck class.
PiperOrigin-RevId: 193972549
Diffstat (limited to 'tensorflow/contrib/coder/BUILD')
-rw-r--r--tensorflow/contrib/coder/BUILD56
1 files changed, 54 insertions, 2 deletions
diff --git a/tensorflow/contrib/coder/BUILD b/tensorflow/contrib/coder/BUILD
index 9ca4ce8a9c..a146460a9c 100644
--- a/tensorflow/contrib/coder/BUILD
+++ b/tensorflow/contrib/coder/BUILD
@@ -1,5 +1,5 @@
# Description:
-# Contains entropy coding related modules.
+# Contains tools related to data compression.
package(default_visibility = [
"//learning/brain:__subpackages__",
@@ -152,10 +152,21 @@ tf_gen_op_wrapper_py(
deps = [":coder_ops_op_lib"],
)
+py_library(
+ name = "coder_py",
+ srcs = [
+ "__init__.py",
+ ],
+ srcs_version = "PY2AND3",
+ deps = [
+ ":coder_ops_py",
+ ":entropybottleneck_py",
+ ],
+)
+
tf_custom_op_py_library(
name = "coder_ops_py",
srcs = [
- "__init__.py",
"python/ops/coder_ops.py",
],
dso = [
@@ -186,3 +197,44 @@ tf_py_test(
],
main = "python/ops/coder_ops_test.py",
)
+
+py_library(
+ name = "entropybottleneck_py",
+ srcs = [
+ "python/layers/entropybottleneck.py",
+ ],
+ srcs_version = "PY2AND3",
+ deps = [
+ ":coder_ops_py",
+ "//tensorflow/python:array_ops",
+ "//tensorflow/python:constant_op",
+ "//tensorflow/python:dtypes",
+ "//tensorflow/python:functional_ops",
+ "//tensorflow/python:init_ops",
+ "//tensorflow/python:math_ops",
+ "//tensorflow/python:nn",
+ "//tensorflow/python:ops",
+ "//tensorflow/python:random_ops",
+ "//tensorflow/python:state_ops",
+ "//tensorflow/python:summary_ops",
+ "//tensorflow/python:tensor_shape",
+ "//tensorflow/python:variable_scope",
+ "//tensorflow/python/eager:context",
+ "//tensorflow/python/keras:engine",
+ "//third_party/py/numpy",
+ ],
+)
+
+tf_py_test(
+ name = "entropybottleneck_py_test",
+ srcs = [
+ "python/layers/entropybottleneck_test.py",
+ ],
+ additional_deps = [
+ ":entropybottleneck_py",
+ "//tensorflow/python:client_testlib",
+ "//tensorflow/python:variables",
+ "//tensorflow/python:training",
+ ],
+ main = "python/layers/entropybottleneck_test.py",
+)