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

[bug_fix] fix call_link_level_trainer() and call_node_level_trainer() #274

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

ahn1340
Copy link
Contributor

@ahn1340 ahn1340 commented Jul 30, 2022

This PR fixes call_link_level_trainer() and call_node_level_trainer() raising ValueError when trainer_type doesn't match. When a custom trainer is registered, the above functions should return None instead of raising the error, so that trainer_builder can properly get the custom trainer.

@CLAassistant
Copy link

CLAassistant commented Jul 30, 2022

CLA assistant check
All committers have signed the CLA.

@rayrayraykk
Copy link
Collaborator

Thanks for your PR, we ask that you sign our Contributor License Agreement before we can accept your contribution.

… raising ValueError when trainer_type doesn't match
@ahn1340 ahn1340 force-pushed the fix_gfl_trainer_builder branch from 07efaa3 to c34117d Compare August 1, 2022 09:35
@ahn1340
Copy link
Contributor Author

ahn1340 commented Aug 1, 2022

Thanks for the reply. I have signed the CLA now.

@DavdGao DavdGao linked an issue Aug 4, 2022 that may be closed by this pull request
Copy link
Collaborator

@xieyxclack xieyxclack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xieyxclack xieyxclack merged commit c78a55b into alibaba:master Aug 4, 2022
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.

Bug when registering custom trainer
4 participants