mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
02730c1e79
commit
3bcc19b29a
@ -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
|
||||
|
Reference in New Issue
Block a user