Skip to content

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
@JiayiFeng JiayiFeng requested review from dzhwinter and reyoung July 24, 2017 14:32
return op_creators_;
}

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

2 participants