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

improve efficiency of dot op in dygraph mode #23856

Merged
merged 2 commits into from
Apr 17, 2020
Merged

improve efficiency of dot op in dygraph mode #23856

merged 2 commits into from
Apr 17, 2020

Conversation

liupluswei
Copy link
Contributor

@liupluswei liupluswei commented Apr 14, 2020

Type check consumes too much time in dygraph mode: about 8~10 times to other framework.
Change the code to call API directly in dygraph mode.

@@ -440,6 +440,10 @@ def dot(x, y, name=None):

"""
op_type = 'dot'
if in_dygraph_mode():
Copy link
Contributor

Choose a reason for hiding this comment

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

加个注释说明吧,以便于其他人理解这里的逻辑

Copy link
Contributor

Choose a reason for hiding this comment

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

由于目前ci排队时间比较长,可以先merge,后续补充注释

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

lanxianghit
lanxianghit previously approved these changes Apr 15, 2020
@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Apr 16, 2020
@PaddlePaddle PaddlePaddle unlocked this conversation Apr 16, 2020
@liupluswei liupluswei merged commit c645d23 into PaddlePaddle:develop Apr 17, 2020
@liupluswei liupluswei deleted the improve_dot_op_dev branch April 17, 2020 07:52
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