Skip to content

Commit 58b5a59

Browse files
authored
Update apply_func.py
1 parent 05ec7c7 commit 58b5a59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/utilities/apply_func.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from pytorch_lightning.utilities.imports import _module_available
2727

2828
if _TORCHTEXT_AVAILABLE:
29-
if _module_available("torchtext.legacy"):
29+
if _module_available("torchtext.legacy.data"):
3030
from torchtext.legacy.data import Batch
3131
else:
3232
from torchtext.data import Batch

0 commit comments

Comments
 (0)