PyTorch torch.mvlgamma Function


Pytorch torch 参考手册PyTorch torch Reference Manual

torch.mvlgammais a function in PyTorch used to compute the element-wise logarithm of the multivariate gamma function.

Function Definition

torch.mvlgamma(input, p, out=None)

Usage Example

Example

import torch

# Compute the logarithm of the multivariate gamma function
x = torch.tensor([1.0, 2.0, 3.0])
p = 2
result = torch.mvlgamma(x, p)
print(result)

Pytorch torch 参考手册PyTorch torch Reference Manual

Other Extensions