We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05ec7c7 commit 58b5a59Copy full SHA for 58b5a59
pytorch_lightning/utilities/apply_func.py
@@ -26,7 +26,7 @@
26
from pytorch_lightning.utilities.imports import _module_available
27
28
if _TORCHTEXT_AVAILABLE:
29
- if _module_available("torchtext.legacy"):
+ if _module_available("torchtext.legacy.data"):
30
from torchtext.legacy.data import Batch
31
else:
32
from torchtext.data import Batch
0 commit comments