Define PRNG seeding style for new code in Distributions and TF Probability, with...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 6 Apr 2018 14:13:49 +0000 (07:13 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 6 Apr 2018 14:16:16 +0000 (07:16 -0700)
commitd5bda3a264d0d3d5e7122a956bfdf0b19b8fd880
tree6e6293808ff1f7cd1472c00c28d79088c23a5ff2
parent55b7dc3125d47466ecfa38c7c20e3aa3ffef6345
Define PRNG seeding style for new code in Distributions and TF Probability, with rationales.

Implement lightweight PRNG for seed generation in that style.

Enables incremental refactoring of existing code into this style.

PiperOrigin-RevId: 191884573
tensorflow/contrib/distributions/BUILD
tensorflow/contrib/distributions/__init__.py
tensorflow/contrib/distributions/python/kernel_tests/seed_stream_test.py [new file with mode: 0644]
tensorflow/contrib/distributions/python/ops/seed_stream.py [new file with mode: 0644]