Skip to content

Commit e9eed8e

Browse files
ssnlfacebook-github-bot
authored andcommitted
Add doc for Tensor.digamma_? (#11008)
Summary: follow up for #10967 zou3519 vishwakftw Pull Request resolved: #11008 Differential Revision: D9559889 Pulled By: SsnL fbshipit-source-id: a05d8fbad92a54bcdb93de6e62a7f94180da1d99
1 parent f687ff5 commit e9eed8e

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

test/test_torch.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,6 @@ def test_namespace(ns, *skips):
179179
'as_strided_',
180180
re.compile('^clamp_(min|max)_?$'),
181181
'coalesce',
182-
'digamma',
183-
'digamma_',
184182
'index_put',
185183
'is_coalesced',
186184
'is_distributed',

torch/_tensor_docs.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,20 @@ def add_docstr_all(method, docstr):
650650
See :func:`torch.diagonal`
651651
""")
652652

653+
add_docstr_all('digamma',
654+
r"""
655+
digamma() -> Tensor
656+
657+
See :func:`torch.digamma`
658+
""")
659+
660+
add_docstr_all('digamma_',
661+
r"""
662+
digamma_() -> Tensor
663+
664+
In-place version of :meth:`~Tensor.digamma`
665+
""")
666+
653667
add_docstr_all('dim',
654668
r"""
655669
dim() -> int

0 commit comments

Comments
 (0)