Enable fsspec by default for cli config file (#7521)

Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
This commit is contained in:
Mauricio Villegas 2021-05-17 09:53:00 +02:00 committed by GitHub
parent e126649d19
commit d0081778f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -10,6 +10,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
### Added
- Added LightningCLI support for config files on object stores ([#7521](https://github.com/PyTorchLightning/pytorch-lightning/pull/7521))
- Added argument `trainer.predict(ckpt_path)` ([#7430](https://github.com/PyTorchLightning/pytorch-lightning/pull/7430))

View File

@ -24,7 +24,8 @@ from pytorch_lightning.utilities.seed import seed_everything
_JSONARGPARSE_AVAILABLE = _module_available("jsonargparse")
if _JSONARGPARSE_AVAILABLE:
from jsonargparse import ActionConfigFile, ArgumentParser
from jsonargparse import ActionConfigFile, ArgumentParser, set_config_read_mode
set_config_read_mode(fsspec_enabled=True)
else:
ArgumentParser = object

View File

@ -7,4 +7,4 @@ torchtext>=0.5
# onnx>=1.7.0
onnxruntime>=1.3.0
hydra-core>=1.0
jsonargparse[signatures]>=3.11.1
jsonargparse[signatures]>=3.12.0