Add __all__ to torch.distributed, futures, fx, nn, package, benchmark submodules (#80520)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/80520
Approved by: https://github.com/rohan-varma
This commit is contained in:
anjali411
2022-07-07 18:21:06 +00:00
committed by PyTorch MergeBot
parent 81ca2ff353
commit 4bf076e964
21 changed files with 48 additions and 141 deletions

View File

@ -1,6 +1,8 @@
from typing import Any, Iterable
from .version import __version__ as internal_version
__all__ = ['TorchVersion', 'Version', 'InvalidVersion']
class _LazyImport:
"""Wraps around classes lazy imported from packaging.version
Output of the function v in following snippets are identical: