class_docstr: Tests the correctness of the Y = X ** K transformation.
class_docstr_tok: ["Tests","the","correctness","of","the","Y","=","X","*","*","K","transformation","."]
code: def testSpecialCases(self, power, cls):
      b = power_lib.Power(power=power)
      b_other = cls()
      x = [[[1.0, 5], [2, 1]], [[np.sqrt(2.0), 3], [np.sqrt(8.0), 1]]]
      y, y_other = self.evaluate((b.forward(x), b_other.forward(x)))
      self.assertAllClose(y, y_other)
  
      x, x_other = self.evaluate((b.inverse(y), b_other.inverse(y)))
      self.assertAllClose(x, x_other)
  
      ildj, ildj_other = self.evaluate(
          (
              b.inverse_log_det_jacobian(y, event_ndims=0),
              b_other.inverse_log_det_jacobian(y, event_ndims=0),
          )
      )
      self.assertAllClose(ildj, ildj_other)
  
file_path: probability/tensorflow_probability/python/bijectors/power_test.py
imports: from absl.testing import parameterized
  import numpy
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import power
  from tensorflow_probability.python.bijectors import reciprocal
  from tensorflow_probability.python.bijectors import square
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 3 for calling the RaiseBijectorTest obj's underlying member method code with example usage: obj.testSpecialCases(power, cls) without return types