Commit 5cacf656 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower Committed by TensorFlower Gardener
Browse files

Change log_det_jacobian functions for SinhArcsinh to avoid NaN for large positive values.

Currently log1p(x ** 2) is computed which has a potential of returning an inf.
This CL changes that computation for large x to remove that risk, maintaining accuracy.

PiperOrigin-RevId: 163877450
parent 7ed4beea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment