docs: default_root_path -> default_root_dir (#4942)
* docs: default_root_path -> default_root_dir * Apply suggestions from code review * fix Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> * update notebook Co-authored-by: Jethro Kuan <jethro.kuan@bytedance.com> Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com> Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
This commit is contained in:
parent
7b7d4bb86d
commit
c7e349e73d
|
@ -612,10 +612,10 @@ stored. If you don't then use this argument for convenience. Paths can be local
|
|||
paths or remote paths such as `s3://bucket/path` or 'hdfs://path/'. Credentials
|
||||
will need to be set up to use remote filepaths.
|
||||
|
||||
Example::
|
||||
.. testcode::
|
||||
|
||||
# default used by the Trainer
|
||||
trainer = Trainer(default_root_path=os.getcwd())
|
||||
trainer = Trainer(default_root_dir=os.getcwd())
|
||||
|
||||
distributed_backend
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
@ -2152,7 +2152,7 @@
|
|||
"outputs": [],
|
||||
"source": [
|
||||
"# default used by the Trainer\n",
|
||||
"trainer = pl.Trainer(default_root_path=os.getcwd())\n",
|
||||
"trainer = pl.Trainer(default_root_dir=os.getcwd())\n",
|
||||
"\n",
|
||||
"trainer.fit(model, train_loader, val_loader)"
|
||||
]
|
||||
|
|
|
@ -48,7 +48,6 @@ class TrainerProperties(ABC):
|
|||
limit_val_batches: int
|
||||
_default_root_dir: str
|
||||
_weights_save_path: str
|
||||
default_root_path: str
|
||||
accelerator_backend: Accelerator
|
||||
logger: LightningLoggerBase
|
||||
model_connector: ModelConnector
|
||||
|
|
Loading…
Reference in New Issue