class_docstr: Tests correctness of the Y = g(X) = exp(X) transformation.
class_docstr_tok: ["Tests","correctness","of","the","Y","=","g","(","X",")","=","exp","(","X",")","transformation","."]
code: def testJacobian(self):
      bijector = exp.Exp()
      x = tf.constant([22.0])
      fldj = bijector.forward_log_det_jacobian(x, event_ndims=0)
      fldj_theoretical = bijector_test_util.get_fldj_theoretical(
          bijector, x, event_ndims=0
      )
      fldj_, fldj_theoretical_ = self.evaluate([fldj, fldj_theoretical])
      self.assertAllClose(fldj_, fldj_theoretical_)
  
      x = np.expand_dims(np.linspace(-1, 1, num=10), -1)
      fldj = bijector.forward_log_det_jacobian(x, event_ndims=1)
      fldj_theoretical = bijector_test_util.get_fldj_theoretical(
          bijector, x, event_ndims=1
      )
      fldj_, fldj_theoretical_ = self.evaluate([fldj, fldj_theoretical])
      self.assertAllClose(fldj_, fldj_theoretical_)
  
file_path: probability/tensorflow_probability/python/bijectors/exp_test.py
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import exp
  from tensorflow_probability.python.bijectors import invert
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 4 for calling the ExpBijectorTest obj's underlying member method code with example usage: obj.testJacobian() without return types