class_docstr: Tests correctness of the Ascending transformation.
class_docstr_tok: ["Tests","correctness","of","the","Ascending","transformation","."]
code: def testBijectorVector(self):
      ordered = invert.Invert(ascending.Ascending())
      x = np.asarray([[2.0, 3, 4], [4.0, 8, 13]])
      y = [[2.0, 0, 0], [4.0, np.log(4.0), np.log(5.0)]]
      self.assertAllClose(y, self.evaluate(ordered.forward(x)))
      self.assertAllClose(x, self.evaluate(ordered.inverse(y)))
      self.assertAllClose(
          np.sum(np.asarray(y)[..., 1:], axis=-1),
          self.evaluate(
              ordered.inverse_log_det_jacobian(y, event_ndims=1)
          ),
          atol=0.0,
          rtol=1e-7,
      )
      self.assertAllClose(
          self.evaluate(
              -ordered.inverse_log_det_jacobian(y, event_ndims=1)
          ),
          self.evaluate(
              ordered.forward_log_det_jacobian(x, event_ndims=1)
          ),
          atol=0.0,
          rtol=1e-7,
      )
  
file_path: probability/tensorflow_probability/python/bijectors/ascending_test.py
imports: import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import ascending
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import invert
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 2 for calling the AscendingBijectorTest obj's underlying member method code with example usage: obj.testBijectorVector() without return types