mindspore/docs/api/api_python/ops/mindspore.ops.func_lgamma.rst

20 lines
526 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.lgamma
=====================
.. py:function:: mindspore.ops.lgamma(x)
计算输入的绝对值的gamma函数的自然对数。
.. math::
\text{out}_{i} = \ln \Gamma(|\text{input}_{i}|)
参数:
- **x** (Tensor) - 输入Tensor数据类型是float16float32或float64。
返回:
Tensor数据类型和 `x` 一样。
异常:
- **TypeError** - `x` 不是Tensor。
- **TypeError** - `x` 的数据类型不是float16float32或float64。