docstr: Test that the bijector is invertible and that outputs are finite.
docstr_tok: ["Test","that","the","bijector","is","invertible","and","that","outputs","are","finite","."]
code: def testBijectiveAndFinite(self):
      """Test that the bijector is invertible and that outputs are finite."""
      bijection = self._create_glow()
      self.evaluate([v.initializer for v in bijection.variables])
      ims = np.zeros([10] + self.output_shape)
      ims += np.linspace(
          self.minval + 0.0001,
          self.maxval - 0.0001,
          10,
          dtype=np.float32,
      ).reshape([10, 1, 1, 1])
  
      zs = np.float32(np.zeros([10, np.prod(self.output_shape)]))
      zs += np.linspace(0.0, 10.0, 10, dtype=np.float32).reshape(
          10, 1
      )  # 10-sigma is far away.
  
      bijector_test_util.assert_bijective_and_finite(
          bijection,
          np.float32(zs),
          np.float32(ims),
          event_ndims=1,
          eval_func=self.evaluate,
          inverse_event_ndims=3,
          rtol=1e-3,
      )
  
imports: import functools
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import blockwise
  from tensorflow_probability.python.bijectors import chain
  from tensorflow_probability.python.bijectors import composition
  from tensorflow_probability.python.bijectors import glow
  from tensorflow_probability.python.bijectors import identity
  from tensorflow_probability.python.bijectors import pad
  from tensorflow_probability.python.bijectors import sigmoid
  from tensorflow_probability.python.distributions import independent
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.internal import tf_keras
  from tensorflow_probability.python.math.gradient import batch_jacobian
label_desc: Use image node_id 5 for calling the GlowTest obj's underlying member method code with example usage: obj.testBijectiveAndFinite() without return types