class_docstr: Tests correctness of the Y = scale @ x transformation.
class_docstr_tok: ["Tests","correctness","of","the","Y","=","scale","@","x","transformation","."]
code: def testNoBatchScale(self, is_static, dtype):
      bijector = scale_lib.Scale(scale=dtype(2.0))
      x = self.maybe_static(np.array([1.0, 2, 3], dtype), is_static)
      self.assertAllClose([2.0, 4, 6], bijector.forward(x))
      self.assertAllClose([0.5, 1, 1.5], bijector.inverse(x))
      self.assertAllClose(
          -np.log(2.0),
          bijector.inverse_log_det_jacobian(x, event_ndims=0),
      )
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import scale
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
label_desc: Use image node_id 3 for calling the ScaleBijectorTest obj's underlying member method code with example usage: obj.testNoBatchScale(is_static, dtype) without return types