Skip to content

Commit

Permalink
Cleaning up unneeded conversion to tensor in quantile().
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 262623206
  • Loading branch information
Googler authored and tensorflower-gardener committed Aug 9, 2019
1 parent 4ba46da commit 785035b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tensorflow_probability/python/distributions/exponential.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,4 @@ def _sample_n(self, n, seed=None):
return -tf.math.log(sampled) / rate

def _quantile(self, value):
value = tf.convert_to_tensor(value, dtype=self.rate.dtype)
return -tf.math.log1p(-value) / self.rate

0 comments on commit 785035b

Please sign in to comment.