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

update gradient operator registry mechanism #3036

Merged
merged 4 commits into from
Jul 25, 2017

Conversation

JiayiFeng
Copy link
Collaborator

@JiayiFeng JiayiFeng commented Jul 24, 2017

OLD:
op_type --> grad_op_creator

NEW:
grad_op_type --> grad_op_creator
op_type --> grad_op_type

This change makes it possible to register grad op's grad op.

OLD: op_type -> grad_op_creator

NEW: grad_op_type -> grad_op_creator
     op_type -> grad_op_type
}

private:
Copy link
Contributor

Choose a reason for hiding this comment

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

why make op_creators public? In my mind, it is only used by the CreatorOp and RegisterOp.

Copy link
Collaborator Author

@JiayiFeng JiayiFeng Jul 25, 2017

Choose a reason for hiding this comment

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

It's also used by GradOpBuilder. Because all gradient operators are also registered in op_creators.

Copy link
Contributor

@dzhwinter dzhwinter left a comment

Choose a reason for hiding this comment

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

LGTM

@JiayiFeng JiayiFeng merged commit 72b5bd9 into PaddlePaddle:develop Jul 25, 2017
@JiayiFeng JiayiFeng deleted the dev_update_backward branch July 25, 2017 03:37
heavengate pushed a commit to heavengate/Paddle that referenced this pull request Aug 16, 2021
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.

None yet

2 participants