YouTip LogoYouTip

Pytorch Torch Digamma

# PyTorch torch.digamma Function * * Pytorch torch Reference Manual](#) `torch.digamma` is a function in PyTorch used to compute the psi function (logarithmic derivative) element-wise. ### Function Definition torch.digamma(input, *, out=None) * * * ## Usage Example ## Example import torch # Example: Computing the psi function x = torch.tensor([1.0,2.0,3.0,4.0], dtype=torch.float32) result = torch.digamma(x) print(result)# tensor([-0.5772, 0.4228, 1.2561, 2.0312]) * * Pytorch torch Reference Manual](#) AI is thinking... [](#)(#) [PyTorch torch.nn Reference Manual](#)[](#) [ByteArk Coding Plan supports mainstream large models like Doubao, GLM, DeepSeek, Kimi, MiniMax, etc., official supply stable and reliable. Configuration Guide Β₯9.9/ Month Subscribe Now](https://maas.xfyun.cn/modelSquare?ch=maas_lm_l2E)
← Pytorch Torch DivPytorch Torch Diagonal_Scatter β†’