# tensorplay.functional.lgamma Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.lgamma.html ```python tensorplay.functional.lgamma(input, *, out=None) → Tensor ``` Computes the natural logarithm of the absolute value of the gamma function on input. $$\text{out}_{i} = \ln |\Gamma(\text{input}_{i})|$$ Parameters: input ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – the input tensor. Keyword Arguments: out ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor), optional) – the output tensor. Example: ``` >>> a = tensorplay.arange(0.5, 2, 0.5) >>> tensorplay.lgamma(a) tensor([ 0.5724, 0.0000, -0.1208]) ```