jax.scipy.special.xlog1py#
- jax.scipy.special.xlog1py = <jax._src.custom_derivatives.custom_jvp object>[source]#
计算 x*log(1 + y),当 x=0 时返回 0。
JAX 对
scipy.special.xlog1py
的实现。定义为当 \((x, y) = (0, -1)\) 时返回 0,并具有自定义导数规则,以便在此点自动微分得到良好定义。
- 参数:
x (ArrayLike) – 类似数组,实数值。
y (ArrayLike) – 类似数组,实数值。
- 返回:
包含 xlog1py 值的数组。
- 返回类型: