override#

(s3prl.util.override)

Parse command-line arguments into override dictionary

Authors
  • Leo 2022

parse_overrides#

s3prl.util.override.parse_overrides(options: list)[source][source]#
Example usgae:
[

“–optimizer.lr”, “1.0e-3”, “–optimizer.name”, “AdamW”, “–runner.eval_dataloaders”, “[‘dev’, ‘test’]”,

]

Convert to:
{

“optimizer”: {“lr”: 1.0e-3, “name”: “AdamW”}, “runner”: {“eval_dataloaders”: [“dev”, “test”]}

}