Remove unnecessary import

This commit is contained in:
Dalton 2024-03-20 23:33:15 -04:00 committed by GitHub
parent 4eb5e09873
commit 4bc2963320
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -25,7 +25,6 @@ def fix_torch_version():
torch.__version__ = re.search(r'[\d.]+[\d]', torch.__version__).group(0)
def fix_pytorch_lightning():
import pytorch_lightning
# Checks if pytorch_lightning.utilities.distributed already exists in the sys.modules cache
if 'pytorch_lightning.utilities.distributed' not in sys.modules:
# Lets the user know that the library was not found and then will set it to pytorch_lightning.utilities.rank_zero