diff --git a/tensorflow/contrib/BUILD b/tensorflow/contrib/BUILD index 07c9a969280..046708ada14 100644 --- a/tensorflow/contrib/BUILD +++ b/tensorflow/contrib/BUILD @@ -13,6 +13,7 @@ py_library( srcs_version = "PY2AND3", visibility = ["//visibility:public"], deps = [ + "//tensorflow/contrib/bayesflow:bayesflow_py", "//tensorflow/contrib/ctc:ctc_py", "//tensorflow/contrib/distributions:distributions_py", "//tensorflow/contrib/framework:framework_py", diff --git a/tensorflow/contrib/bayesflow/BUILD b/tensorflow/contrib/bayesflow/BUILD new file mode 100644 index 00000000000..074ef3c47b4 --- /dev/null +++ b/tensorflow/contrib/bayesflow/BUILD @@ -0,0 +1,40 @@ +# Description: +# Contains ops for statistical distributions (with pdf, cdf, sample, etc...). +# APIs here are meant to evolve over time. + +licenses(["notice"]) # Apache 2.0 + +exports_files(["LICENSE"]) + +package(default_visibility = ["//tensorflow:__subpackages__"]) + +# load("//tensorflow:tensorflow.bzl", "cuda_py_tests") + +py_library( + name = "bayesflow_py", + srcs = ["__init__.py"] + glob(["python/ops/*.py"]), + srcs_version = "PY2AND3", +) + +# cuda_py_tests( +# name = "some_bayesflow_test", +# size = "small", +# srcs = ["python/kernel_tests/some_bayesflow_test.py"], +# additional_deps = [ +# ":bayesflow_py", +# "//tensorflow/python:framework_test_lib", +# "//tensorflow/python:platform_test", +# ], +# ) + +filegroup( + name = "all_files", + srcs = glob( + ["**/*"], + exclude = [ + "**/METADATA", + "**/OWNERS", + ], + ), + visibility = ["//tensorflow:__subpackages__"], +) diff --git a/tensorflow/contrib/bayesflow/__init__.py b/tensorflow/contrib/bayesflow/__init__.py new file mode 100644 index 00000000000..2f9b8fcafb1 --- /dev/null +++ b/tensorflow/contrib/bayesflow/__init__.py @@ -0,0 +1,28 @@ +# Copyright 2016 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. +# ============================================================================== +"""Ops for representing statistical distributions. + +## This package provides classes for statistical distributions. + +""" +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function + +# pylint: disable=unused-import,wildcard-import, line-too-long +from tensorflow.contrib.distributions.python.ops import gaussian_conjugate_posteriors +from tensorflow.contrib.distributions.python.ops.dirichlet_multinomial import * +from tensorflow.contrib.distributions.python.ops.gaussian import * +# from tensorflow.contrib.distributions.python.ops.dirichlet import * # pylint: disable=line-too-long diff --git a/tensorflow/contrib/bayesflow/python/__init__.py b/tensorflow/contrib/bayesflow/python/__init__.py new file mode 100644 index 00000000000..3f13bfc4fcc --- /dev/null +++ b/tensorflow/contrib/bayesflow/python/__init__.py @@ -0,0 +1,19 @@ +# Copyright 2016 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. +# ============================================================================== +"""ops module.""" + +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function