fix batch typo
This commit is contained in:
parent
593837e1da
commit
92d1e75b26
|
@ -10,7 +10,7 @@ TORCHTEXT_AVAILABLE = importlib.util.find_spec("torchtext") is not None
|
||||||
if TORCHTEXT_AVAILABLE:
|
if TORCHTEXT_AVAILABLE:
|
||||||
from torchtext.data import Batch
|
from torchtext.data import Batch
|
||||||
else:
|
else:
|
||||||
Batch = None
|
Batch = type(None)
|
||||||
|
|
||||||
|
|
||||||
def apply_to_collection(data: Any, dtype: Union[type, tuple], function: Callable, *args, **kwargs) -> Any:
|
def apply_to_collection(data: Any, dtype: Union[type, tuple], function: Callable, *args, **kwargs) -> Any:
|
||||||
|
|
Loading…
Reference in New Issue