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

Modify machine translation example using new LoDTensor API #11018

Merged
merged 2 commits into from
May 30, 2018

Conversation

kexinzhao
Copy link
Contributor

Please check #10735 for why we are doing this.

To solve the issue above, we have merged a PR #10817 and now there is utility functions here to create LoDTensor.

So this means that we can simplify the book example code using the new API.
This PR tries to modify the machine translation book example.

Copy link
Contributor

@sidgoyal78 sidgoyal78 left a comment

Choose a reason for hiding this comment

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

Thanks for the changes, the example is much more concise now. LGTM

@kexinzhao kexinzhao merged commit 60783a7 into PaddlePaddle:develop May 30, 2018
@kexinzhao kexinzhao deleted the machine_translation_lod branch May 30, 2018 00:50
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