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