Add __all__ to various submodules in torch.fx, distributions, distributed, package (#80367)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/80367
Approved by: https://github.com/albanD
This commit is contained in:
anjali411
2022-06-27 18:44:11 +00:00
committed by PyTorch MergeBot
parent 02730c1e79
commit 3bcc19b29a
58 changed files with 70 additions and 455 deletions

View File

@ -3,6 +3,7 @@ from torch.distributions import constraints
from torch.distributions.distribution import Distribution
from torch.distributions.utils import broadcast_all, probs_to_logits, lazy_property, logits_to_probs
__all__ = ['Binomial']
def _clamp_by_zero(x):
# works like clamp(x, min=0) but has grad at 0 is 0.5