Skip to content

Commit 92d1e75

Browse files
committed
fix batch typo
1 parent 593837e commit 92d1e75

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
@@ -10,7 +10,7 @@
1010
if TORCHTEXT_AVAILABLE:
1111
from torchtext.data import Batch
1212
else:
13-
Batch = None
13+
Batch = type(None)
1414

1515

1616
def apply_to_collection(data: Any, dtype: Union[type, tuple], function: Callable, *args, **kwargs) -> Any:

0 commit comments

Comments
 (0)