class_docstr: Tests correctness of the Ascending transformation.
class_docstr_tok: ["Tests","correctness","of","the","Ascending","transformation","."]
code: def testBijectorUnknownShape(self):
      ordered = invert.Invert(ascending.Ascending())
      x_ = np.asarray([[2.0, 3, 4], [4.0, 8, 13]], dtype=np.float32)
      y_ = np.asarray(
          [[2.0, 0, 0], [4.0, np.log(4.0), np.log(5.0)]],
          dtype=np.float32,
      )
      x = tf1.placeholder_with_default(x_, shape=[2, None])
      y = tf1.placeholder_with_default(y_, shape=[2, None])
      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 3 for calling the AscendingBijectorTest obj's underlying member method code with example usage: obj.testBijectorUnknownShape() without return types