(name, value, choices)
| 342 | |
| 343 | |
| 344 | def check_choices(name, value, choices): |
| 345 | # return # No checks in dev branch |
| 346 | if value not in choices: |
| 347 | raise ValueError(f"{name} {value} not in supported choices {choices}") |
| 348 | |
| 349 | |
| 350 | KEYS_TYPE_BOOL = ["use_amp", "distributed", "use_shared_dict", "same_lr", "aug", "three_phase", |