import tensorflow as tf

    compute_pdf = lambda x: pareto.prob(x)  # pylint:disable=unnecessary-lambda
    self.assertAlmostEqual(self.compute_gradients(
        compute_pdf, args=[x])[0], 0.)

  def testParetoCDFGradientZeroOutsideSupport(self):
    scale = tf.constant(1.)
    concentration = tf.constant(3.)
    # Check the gradient on the undefined portion.
    x = scale - 1

