class_docstr: Tests correctness of the Y = scale @ x transformation.
class_docstr_tok: ["Tests","correctness","of","the","Y","=","scale","@","x","transformation","."]
code: def testVariableGradients(self):
      b = scale_lib.Scale(scale=tf.Variable(2.0))
  
      with tf.GradientTape() as tape:
          y = b.forward(0.1)
      self.assertAllNotNone(tape.gradient(y, b.trainable_variables))
  
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 7 for calling the ScaleBijectorTest obj's underlying member method code with example usage: obj.testVariableGradients() without return types