diff options
author | Brian Patton <bjp@google.com> | 2018-09-20 13:04:40 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-20 13:08:17 -0700 |
commit | 14986a41bc281d847d109fefed6fee85bde07c75 (patch) | |
tree | 49f05d8b8aaea9639b962356cfbe9e4cb3ad4acf /tensorflow/contrib/distributions | |
parent | 07bb219ee9a6f11139396ac73d4138522300f86b (diff) |
Updating doc references to tf.distributions to point to tfp.distributions.
PiperOrigin-RevId: 213867606
Diffstat (limited to 'tensorflow/contrib/distributions')
-rw-r--r-- | tensorflow/contrib/distributions/python/kernel_tests/distribution_test.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tensorflow/contrib/distributions/python/kernel_tests/distribution_test.py b/tensorflow/contrib/distributions/python/kernel_tests/distribution_test.py index f073f51a69..9b9b3ce2dd 100644 --- a/tensorflow/contrib/distributions/python/kernel_tests/distribution_test.py +++ b/tensorflow/contrib/distributions/python/kernel_tests/distribution_test.py @@ -212,7 +212,7 @@ class DistributionTest(test.TestCase): def testStrWorksCorrectlyScalar(self): normal = tfd.Normal(loc=np.float16(0), scale=np.float16(1)) self.assertEqual( - ("tf.distributions.Normal(" + ("tfp.distributions.Normal(" "\"Normal/\", " "batch_shape=(), " "event_shape=(), " @@ -221,7 +221,7 @@ class DistributionTest(test.TestCase): chi2 = tfd.Chi2(df=np.float32([1., 2.]), name="silly") self.assertEqual( - ("tf.distributions.Chi2(" + ("tfp.distributions.Chi2(" "\"silly/\", " # What a silly name that is! "batch_shape=(2,), " "event_shape=(), " @@ -230,7 +230,7 @@ class DistributionTest(test.TestCase): exp = tfd.Exponential(rate=array_ops.placeholder(dtype=dtypes.float32)) self.assertEqual( - ("tf.distributions.Exponential(\"Exponential/\", " + ("tfp.distributions.Exponential(\"Exponential/\", " # No batch shape. "event_shape=(), " "dtype=float32)"), @@ -240,7 +240,7 @@ class DistributionTest(test.TestCase): mvn_static = tfd.MultivariateNormalDiag( loc=np.zeros([2, 2]), name="MVN") self.assertEqual( - ("tf.distributions.MultivariateNormalDiag(" + ("tfp.distributions.MultivariateNormalDiag(" "\"MVN/\", " "batch_shape=(2,), " "event_shape=(2,), " @@ -251,7 +251,7 @@ class DistributionTest(test.TestCase): loc=array_ops.placeholder(shape=[None, 3], dtype=dtypes.float32), name="MVN2") self.assertEqual( - ("tf.distributions.MultivariateNormalDiag(" + ("tfp.distributions.MultivariateNormalDiag(" "\"MVN2/\", " "batch_shape=(?,), " # Partially known. "event_shape=(3,), " @@ -261,7 +261,7 @@ class DistributionTest(test.TestCase): def testReprWorksCorrectlyScalar(self): normal = tfd.Normal(loc=np.float16(0), scale=np.float16(1)) self.assertEqual( - ("<tf.distributions.Normal" + ("<tfp.distributions.Normal" " 'Normal/'" " batch_shape=()" " event_shape=()" @@ -270,7 +270,7 @@ class DistributionTest(test.TestCase): chi2 = tfd.Chi2(df=np.float32([1., 2.]), name="silly") self.assertEqual( - ("<tf.distributions.Chi2" + ("<tfp.distributions.Chi2" " 'silly/'" # What a silly name that is! " batch_shape=(2,)" " event_shape=()" @@ -279,7 +279,7 @@ class DistributionTest(test.TestCase): exp = tfd.Exponential(rate=array_ops.placeholder(dtype=dtypes.float32)) self.assertEqual( - ("<tf.distributions.Exponential" + ("<tfp.distributions.Exponential" " 'Exponential/'" " batch_shape=<unknown>" " event_shape=()" @@ -290,7 +290,7 @@ class DistributionTest(test.TestCase): mvn_static = tfd.MultivariateNormalDiag( loc=np.zeros([2, 2]), name="MVN") self.assertEqual( - ("<tf.distributions.MultivariateNormalDiag" + ("<tfp.distributions.MultivariateNormalDiag" " 'MVN/'" " batch_shape=(2,)" " event_shape=(2,)" @@ -301,7 +301,7 @@ class DistributionTest(test.TestCase): loc=array_ops.placeholder(shape=[None, 3], dtype=dtypes.float32), name="MVN2") self.assertEqual( - ("<tf.distributions.MultivariateNormalDiag" + ("<tfp.distributions.MultivariateNormalDiag" " 'MVN2/'" " batch_shape=(?,)" # Partially known. " event_shape=(3,)" |