mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[special] use __all__ to hide internal imports (#63135)
Summary: Reference: https://github.com/pytorch/pytorch/issues/50345 Pull Request resolved: https://github.com/pytorch/pytorch/pull/63135 Reviewed By: ngimel Differential Revision: D30364287 Pulled By: mruberry fbshipit-source-id: 20078668943fafa45ce09610634b1d2c424b1922
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0c3904d180
commit
d986d4bf63
@ -1,9 +1,12 @@
|
||||
import sys
|
||||
|
||||
import torch
|
||||
from torch._C import _add_docstr, _special # type: ignore[attr-defined]
|
||||
from torch._torch_docs import common_args, multi_dim_common
|
||||
|
||||
__all__ = ['entr', 'psi', 'digamma', 'gammaln', 'polygamma', 'erf', 'erfc', 'erfinv',
|
||||
'erfcx', 'logit', 'logsumexp', 'expit', 'exp2', 'expm1', 'xlog1py', 'xlogy',
|
||||
'i0', 'i0e', 'i1', 'i1e', 'ndtr', 'ndtri', 'log1p', 'sinc', 'round', 'log_softmax',
|
||||
'zeta', 'multigammaln']
|
||||
|
||||
Tensor = torch.Tensor
|
||||
|
||||
entr = _add_docstr(_special.special_entr,
|
||||
|
Reference in New Issue
Block a user