计算 x * log1p(y)。
用法
tf.math.xlog1py(
x, y, name=None
)参数
-
xbfloat16,half,float32,float64,complex64,complex128类型的tf.Tensor -
ybfloat16,half,float32,float64,complex64,complex128类型的tf.Tensor -
name操作的名称(可选)。
返回
-
x * log1p(y)。
给定 x 和 y ,计算 x * log1p(y) 。该函数在 x = 0 时安全地返回零,无论 y 的值是什么。
例子:
tf.math.xlog1py(0., 1.)
<tf.Tensor:shape=(), dtype=float32, numpy=0.>
tf.math.xlog1py(1., 1.)
<tf.Tensor:shape=(), dtype=float32, numpy=0.6931472>
tf.math.xlog1py(2., 2.)
<tf.Tensor:shape=(), dtype=float32, numpy=2.1972246>
tf.math.xlog1py(0., -1.)
<tf.Tensor:shape=(), dtype=float32, numpy=0.>
scipy 兼容性
相当于 scipy.special.xlog1py
相关用法
- Python tf.math.special.fresnel_cos用法及代码示例
- Python tf.math.polyval用法及代码示例
- Python tf.math.is_finite用法及代码示例
- Python tf.math.special.bessel_k0e用法及代码示例
- Python tf.math.acosh用法及代码示例
- Python tf.math.invert_permutation用法及代码示例
- Python tf.math.segment_prod用法及代码示例
- Python tf.math.bincount用法及代码示例
- Python tf.math.bessel_i0e用法及代码示例
- Python tf.math.unsorted_segment_min用法及代码示例
- Python tf.math.conj用法及代码示例
- Python tf.math.scalar_mul用法及代码示例
- Python tf.math.zero_fraction用法及代码示例
- Python tf.math.reduce_max用法及代码示例
- Python tf.math.special.fresnel_sin用法及代码示例
- Python tf.math.segment_mean用法及代码示例
- Python tf.math.less_equal用法及代码示例
- Python tf.math.reduce_min用法及代码示例
- Python tf.math.log_sigmoid用法及代码示例
- Python tf.math.expm1用法及代码示例
注:本文由纯净天空筛选整理自tensorflow.org大神的英文原创作品 tf.math.xlog1py。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
