mindspore.ops.igammac
- mindspore.ops.igammac(input, other)[源代码]
计算正则化的上层不完全伽马函数。
将 input 记作 a , other 记作 x ,则正则化的上层不完全伽马函数可以表示为:
其中,
表示上层不完全伽马函数。
表示正则化的下层不完全伽马函数。警告
这是一个实验性API,后续可能修改或删除。
- 参数:
input (Tensor) - 第一个输入tensor。
other (Tensor) - 第二个输入tensor。
- 返回:
Tensor,数据类型与 input 和 other 相同。
- 支持平台:
Ascend
GPU
CPU
样例:
>>> import mindspore >>> input = mindspore.tensor([2.0, 4.0, 6.0, 8.0]) >>> other = mindspore.tensor([2.0, 3.0, 4.0, 5.0]) >>> output = mindspore.ops.igammac(input, other) >>> print(output) [0.40600574 0.6472322 0.78513044 0.8666282 ]