Skip to content
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] Use get instead of pop to dump runner_type #549

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

nijkah
Copy link
Contributor

@nijkah nijkah commented Sep 26, 2022

Motivation

When using a custom runner, runner_type is not dumped appropriately, since build_runner_from_cfg function pops the runner_type.
To reproduce the experiment, it seems better to dump runner_type too.

obj_type = args.pop('runner_type', 'mmengine.Runner')

@nijkah nijkah changed the title Use get instead of pop to get runner_type Use get instead of pop to dump runner_type Sep 26, 2022
@nijkah nijkah changed the title Use get instead of pop to dump runner_type [Fix] Use get instead of pop to dump runner_type Sep 26, 2022
@HAOCHENYE
Copy link
Collaborator

LGTM.

@ZwwWayne ZwwWayne merged commit 36af1f0 into open-mmlab:main Sep 26, 2022
@nijkah nijkah deleted the fix/dump_runner_type branch September 26, 2022 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants