def testZipfLogPmf_InvalidArgs(self):
    power = tf.constant([4.0])
    non_integer_samples = [0.99, 4.5, 5.001, 1e-06, (- 3), (- 2), (- 1), (- 0.0), 0]
    for x in non_integer_samples:
        zipf = tfd.Zipf(power=power, interpolate_nondiscrete=False, validate_args=True)
        with self.assertRaisesOpError('Condition (x == y|x > 0)'):
            self.evaluate(zipf.log_prob(x))
        with self.assertRaisesOpError('Condition (x == y|x > 0)'):
            self.evaluate(zipf.prob(x))
def testZipfLogPmf_InvalidArgs(self):
    power = tf.constant([4.0])
    non_integer_samples = [0.99, 4.5, 5.001, 1e-06, (- 3), (- 2), (- 1), (- 0.0), 0]
    for x in non_integer_samples:
        zipf = tfd.Zipf(power=power, interpolate_nondiscrete=False, validate_args=True)
        with self.assertRaisesOpError('Condition (x == y|x > 0)'):
            self.evaluate(zipf.log_prob(x))
        with self.assertRaisesOpError('Condition (x == y|x > 0)'):
            self.evaluate(zipf.prob(x))