Only use integer values for event_ndims.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 8 May 2018 23:20:02 +0000 (16:20 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 9 May 2018 00:05:41 +0000 (17:05 -0700)
commitbbebae04db61e137e4013a031f429543422ae373
tree88cc3a4f238b2b02165ebd5c46ebcc8a71d983ec
parent0028bf843d8846bd16b25bf5447b1649fde10fb7
Only use integer values for event_ndims.

event_ndims have the semantics of being an integer. However, other code paths (such as const_value)
can return back numpy wrapped arrays, which can mess with how values are cached. Instead extract
everything as an integer.

PiperOrigin-RevId: 195894216
tensorflow/contrib/distributions/python/kernel_tests/bijectors/chain_test.py
tensorflow/contrib/distributions/python/ops/bijectors/chain.py
tensorflow/python/kernel_tests/distributions/util_test.py
tensorflow/python/ops/distributions/bijector_impl.py
tensorflow/python/ops/distributions/util.py