Skip to content

Commit 5921162

Browse files
author
Ruo-Ping Dong
authored
Fix attribute name for torch device in argparser (#5433)
1 parent 8963f72 commit 5921162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ml-agents/mlagents/trainers/cli_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def _create_parser() -> argparse.ArgumentParser:
257257
torch_conf.add_argument(
258258
"--torch-device",
259259
default=None,
260-
dest="device",
260+
dest="torch_device",
261261
action=DetectDefault,
262262
help='Settings for the default torch.device used in training, for example, "cpu", "cuda", or "cuda:0"',
263263
)

0 commit comments

Comments
 (0)