We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 503d05b commit 94fc482Copy full SHA for 94fc482
torchrec/distributed/benchmark/benchmark_utils.py
@@ -524,6 +524,9 @@ def wrapper() -> Any:
524
if origin in (list, List):
525
elem_type = get_args(ftype)[0]
526
arg_kwargs.update(nargs="*", type=elem_type)
527
+ elif ftype is bool:
528
+ # Special handling for boolean arguments
529
+ arg_kwargs.update(type=lambda x: x.lower() in ["true", "1", "yes"])
530
else:
531
arg_kwargs.update(type=ftype)
532
0 commit comments