class_docstr: Tests the correctness of the Y = inv(tril) transformation.
class_docstr_tok: ["Tests","the","correctness","of","the","Y","=","inv","(","tril",")","transformation","."]
code: def testJacobian(self):
      bijector = matrix_inverse_tril.MatrixInverseTriL()
      batch_size = 5
      for ndims in range(2, 5):
          x_ = np.tril(
              np.random.uniform(
                  -1.0, 1.0, size=[batch_size, ndims, ndims]
              ).astype(np.float64)
          )
          fldj = bijector.forward_log_det_jacobian(x_, event_ndims=2)
          fldj_theoretical = bijector_test_util.get_fldj_theoretical(
              bijector,
              x_,
              event_ndims=2,
              input_to_unconstrained=invert.Invert(
                  fill_triangular.FillTriangular()
              ),
              output_to_unconstrained=invert.Invert(
                  fill_triangular.FillTriangular()
              ),
          )
          fldj_, fldj_theoretical_ = self.evaluate(
              [fldj, fldj_theoretical]
          )
          self.assertAllClose(fldj_, fldj_theoretical_)
  
file_path: probability/tensorflow_probability/python/bijectors/matrix_inverse_tril_test.py
imports: import numpy
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import fill_triangular
  from tensorflow_probability.python.bijectors import invert
  from tensorflow_probability.python.bijectors import matrix_inverse_tril
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 9 for calling the MatrixInverseTriLBijectorTest obj's underlying member method code with example usage: obj.testJacobian() without return types