-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] prioritize cli options over yaml #5495
Conversation
# ignore init if resume set | ||
full_args.append("--resume") | ||
opt = parse_command_line(full_args) | ||
assert opt.checkpoint_settings.initialize_from is None # ignore init if resume set | ||
assert opt.checkpoint_settings.resume is True | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a test to check if they were both set in the YAML but not the CLI? I think we can do this in the test_settings.py
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot in my last approval - add this bug fix to the CHANGELOG.md file and reference the PR before merging.
Proposed change(s)
steps to reproduce the bug:
solution: checkpointSetting class now prioritize the command line arguments (resume or initialize_from for now) over conflicting yaml options. yaml option is nuke with a warning
Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
Types of change(s)
Checklist
Other comments