Skip to content

Commit 0325aa7

Browse files
awaelchlirohitgr7
andauthored
Apply suggestions from code review
Co-authored-by: Rohit Gupta <[email protected]>
1 parent 73cb165 commit 0325aa7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pytorch_lightning/core/saving.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def load_hparams_from_yaml(config_yaml: str, use_omegaconf: bool = True) -> Dict
319319
320320
Args:
321321
config_yaml: Path to config yaml file
322-
use_omegaconf: If omegaconf is available and `use_omegaconf=True`,
322+
use_omegaconf: If omegaconf is available and ``use_omegaconf=True``,
323323
the hparams will be converted to ``DictConfig`` if possible.
324324
325325
>>> hparams = Namespace(batch_size=32, learning_rate=0.001, data_root='./any/path/here')
@@ -352,8 +352,8 @@ def save_hparams_to_yaml(config_yaml, hparams: Union[dict, Namespace], use_omega
352352
Args:
353353
config_yaml: path to new YAML file
354354
hparams: parameters to be saved
355-
use_omegaconf: If omegaconf is available and `use_omegaconf=True`,
356-
the hparams will be converted to ``DictConfig`` if possible.
355+
use_omegaconf: If omegaconf is available and ``use_omegaconf=True``,
356+
the hparams will be converted to ``DictConfig`` if possible.
357357
358358
"""
359359
fs = get_filesystem(config_yaml)

0 commit comments

Comments
 (0)