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

23 lines
650 B
ReStructuredText
Raw Normal View History

2022-11-15 20:30:51 +08:00
mindspore.ops.Digamma
======================
.. py:class:: mindspore.ops.Digamma
计算输入的lgamma函数的导数。
.. math::
P(x) = grad(ln(gamma(x)))
.. warning::
此算子为实验性算子,将来可能面临更改或删除。
2022-11-22 17:33:37 +08:00
输入:
2022-11-15 20:30:51 +08:00
- **x** (Tensor) - 输入Tensor。数据类型为 `float16``float32` 或者 `float64`
2022-11-22 17:33:37 +08:00
输出:
2022-11-15 20:30:51 +08:00
Tensor, 和输入 `x` 具有相同的数据类型。
2022-11-22 17:33:37 +08:00
异常:
2022-11-15 20:30:51 +08:00
- **TypeError** - 如果输入 `x` 不是Tensor。
- **TypeError** - 输入输入 `x` 的数据类型不是 `float16``float32` 或者 `float64`