def _quantile(self, p, loc=None, scale=None, low=None, high=None):
    (loc, scale, low, high) = self._loc_scale_low_high(loc, scale, low, high)
    (std_low, std_high) = self._standardized_low_and_high(low=low, high=high, loc=loc, scale=scale)
    tanb = tf.math.tan((tfp_math.atan_difference(std_high, std_low) * p))
    x = ((std_low + tanb) / (1 - (std_low * tanb)))
    return numeric.clip_by_value_preserve_gradient(((x * scale) + loc), clip_value_min=low, clip_value_max=high)
def _quantile(self, p, loc=None, scale=None, low=None, high=None):
    (loc, scale, low, high) = self._loc_scale_low_high(loc, scale, low, high)
    (std_low, std_high) = self._standardized_low_and_high(low=low, high=high, loc=loc, scale=scale)
    tanb = tf.math.tan((tfp_math.atan_difference(std_high, std_low) * p))
    x = ((std_low + tanb) / (1 - (std_low * tanb)))
    return numeric.clip_by_value_preserve_gradient(((x * scale) + loc), clip_value_min=low, clip_value_max=high)