class_docstr: Tests correctness of Stick breaking transformation.
class_docstr_tok: ["Tests","correctness","of","Stick","breaking","transformation","."]
code: def testBijectorUnknownShape(self):
      iterated_sigmoid = (
          iterated_sigmoid_centered.IteratedSigmoidCentered()
      )
      self.assertStartsWith(iterated_sigmoid.name, "iterated_sigmoid")
      x_ = self.dtype(
          [[0.0, 0.0, 0.0], -np.log([1 / 3.0, 1 / 2.0, 1.0])]
      )
      y_ = self.dtype(
          [[0.25, 0.25, 0.25, 0.25], [0.5, 0.25, 0.125, 0.125]]
      )
      x = tf1.placeholder_with_default(x_, shape=[2, None])
      y = tf1.placeholder_with_default(y_, shape=[2, None])
      self.assertAllClose(
          y_, self.evaluate(iterated_sigmoid.forward(x))
      )
      self.assertAllClose(
          x_, self.evaluate(iterated_sigmoid.inverse(y))
      )
      self.assertAllClose(
          -np.sum(np.log(y_), axis=1),
          self.evaluate(
              iterated_sigmoid.inverse_log_det_jacobian(
                  y, event_ndims=1
              )
          ),
          atol=0.0,
          rtol=1e-7,
      )
      self.assertAllClose(
          -self.evaluate(
              iterated_sigmoid.inverse_log_det_jacobian(
                  y, event_ndims=1
              )
          ),
          self.evaluate(
              iterated_sigmoid.forward_log_det_jacobian(
                  x, event_ndims=1
              )
          ),
          atol=0.0,
          rtol=1e-7,
      )
  
imports: import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import iterated_sigmoid_centered
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math.gradient import batch_jacobian
label_desc: Use image node_id 2 for calling the _IteratedSigmoidCenteredBijectorTest obj's underlying member method code with example usage: obj.testBijectorUnknownShape() without return types