lightning/pytorch_lightning/utilities
dbonner ee5032a478
apply_func.py: from torchtext.legacy.data import Batch (#6211)
* Update apply_func.py

The name Batch is no longer located under torchtext.data
--Error message--
File "/home/daniel/py38/lib/python3.8/site-packages/pytorch_lightning/utilities/apply_func.py", line 25, in <module>                                                      
    from torchtext.data import Batch                                                  
ImportError: cannot import name 'Batch' from 'torchtext.data' (/home/daniel/py38/lib/p
ython3.8/site-packages/torchtext/data/__init__.py)
You can fix this by changing line line 28 to:
    from torchtext.legacy.data import Batch

* Update apply_func.py

* Update apply_func.py

* Update apply_func.py

* Update apply_func.py

* Update apply_func.py
2021-02-26 19:23:07 +05:30
..
__init__.py Ensure accelerator is valid if running interactively (#5970) 2021-02-23 14:23:50 +01:00
apply_func.py apply_func.py: from torchtext.legacy.data import Batch (#6211) 2021-02-26 19:23:07 +05:30
argparse.py formatting to PL utils (#5713) 2021-01-30 15:28:59 +01:00
argparse_utils.py formatting to PL utils (#5713) 2021-01-30 15:28:59 +01:00
cloud_io.py Update cloud_io.py (#4936) 2020-12-04 11:00:06 +01:00
data.py fix/test quant (#6040) 2021-02-18 10:47:29 +00:00
debugging.py [Bugfix] Fixed epoch level schedulers not being called when val_check_interval < 1.0 (#6075) 2021-02-24 16:46:33 +05:30
device_dtype_mixin.py Enable ZeRO tests for CI, fix to/half function calls (#6070) 2021-02-21 00:24:44 +00:00
device_parser.py PoC: Accelerator refactor (#5743) 2021-02-12 15:48:56 -05:00
distributed.py formatting to PL utils (#5713) 2021-01-30 15:28:59 +01:00
enums.py Ensure accelerator is valid if running interactively (#5970) 2021-02-23 14:23:50 +01:00
exceptions.py formatting to PL utils (#5713) 2021-01-30 15:28:59 +01:00
imports.py Ensure accelerator is valid if running interactively (#5970) 2021-02-23 14:23:50 +01:00
memory.py Make move_metrics_to_cpu work recursively (#6007) 2021-02-16 21:52:42 +00:00
model_helpers.py Fix isort failures in utilities (#5530) 2021-01-15 13:57:40 -05:00
model_utils.py formatting to PL utils (#5713) 2021-01-30 15:28:59 +01:00
parsing.py Raise AttributeError in lightning_getattr and lightning_setattr when attribute not found (#6024) 2021-02-18 20:01:28 +00:00
seed.py formatting to PL utils (#5713) 2021-01-30 15:28:59 +01:00
upgrade_checkpoint.py notices (#4118) 2020-10-13 07:18:07 -04:00
warning_utils.py formatting to PL utils (#5713) 2021-01-30 15:28:59 +01:00
warnings.py Add deprecation warning to ModelCheckpoint when logging val_loss with no monitor (#6012) 2021-02-17 10:46:58 +00:00
xla_device.py Increase TPU check timeout (#5598) 2021-02-04 20:55:41 +01:00
xla_device_utils.py Increase TPU check timeout (#5598) 2021-02-04 20:55:41 +01:00