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

20 lines
536 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:class:: mindspore.ops.Lgamma
计算输入 `x` 伽马函数的自然对数。
.. math::
\text{out}_{i} = \ln \Gamma(\text{input}_{i})
输入:
- **x** (Tensor) - 输入Tensor数据类型支持float16、float32和float64。
输出:
Tensor`x` 的数据类型相同。
异常:
- **TypeError** - `x` 不是Tensor。
- **TypeError** - 输入 `x` 的数据类型不是以下之一float16、float32、float64。