vi_triangular: The Triangular Csiszar-function in log-space
Description
The Triangular Csiszar-function is:
Usage
vi_triangular(logu, name = NULL)
Arguments
logu
float
-like Tensor
representing log(u)
from above.
name
name prefixed to Ops created by this function.
Value
triangular_of_u: float
-like Tensor
of the Csiszar-function
evaluated at u = exp(logu)
.
Details
f(u) = (u - 1)**2 / (1 + u)
Warning: this function makes non-log-space calculations and may
therefore be numerically unstable for |logu| >> 0
.