class_docstr: Tests correctness of the Y = g(X) = expm1(X) transformation.
class_docstr_tok: ["Tests","correctness","of","the","Y","=","g","(","X",")","=","expm1","(","X",")","transformation","."]
code: def testMatchesExpm1(self):
      bijector = expm1.Expm1()
      x = np.random.randn(30)
      y = np.expm1(x)
      self.assertAllClose(y, self.evaluate(bijector.forward(x)))
      # Disable caching.
      self.assertAllClose(
          x, self.evaluate(bijector.inverse(tf.identity(y)))
      )
  
file_path: probability/tensorflow_probability/python/bijectors/expm1_test.py
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import expm1
  from tensorflow_probability.python.bijectors import invert
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 2 for calling the Expm1BijectorTest obj's underlying member method code with example usage: obj.testMatchesExpm1() without return types