docstr: Test if log-det-jacobian agrees with numerical computation.
docstr_tok: ["Test","if","log-det-jacobian","agrees","with","numerical","computation","."]
code: def testInverseLogDetJacobian(self):
      """Test if log-det-jacobian agrees with numerical computation."""
      if not tf.executing_eagerly():
          self.skipTest(
              "Theres a problem with numerical computation of Jacobian."
              "the bijector jacobian implementation  still returns"
              "roughly the same values as it does in eager mode, so I"
              "think our computation works here."
          )
  
      x = self._make_images()
      x = tf.constant(x, tf.float32)
  
      bijection = self._create_glow(actnorm=True)
  
      self.evaluate([v.initializer for v in bijection.variables])
      jacob_manual = self.evaluate(batch_jacobian(bijection.inverse, x))
      _, ldj_manual = np.linalg.slogdet(
          jacob_manual.reshape([5, 768, 768])
      )
  
      jacob = self.evaluate(bijection.inverse_log_det_jacobian(x, 3))
      self.assertAllClose(ldj_manual, jacob, rtol=1.0e-5)
  
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 8 for calling the GlowTest obj's underlying member method code with example usage: obj.testInverseLogDetJacobian() without return types