Commit 081f30a7 authored by David Majnemer's avatar David Majnemer Committed by TensorFlower Gardener
Browse files

[TF2XLA] Optimize TruncatedNormalOp

Re-sampling when encountering a rejected value can be quite slow.
If we directly use the inverse CDF of the normal distribution, the probit
function, we can avoid the need to resample.

PiperOrigin-RevId: 201296864
parent 9ab04add
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment