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

Add lod_tensor.py for ease of creating lod tensor in book examples #10817

Merged
merged 5 commits into from
May 23, 2018

Conversation

kexinzhao
Copy link
Contributor

@kexinzhao kexinzhao commented May 22, 2018

fix #10735

This PR did the following things:

  1. Add lod_tensor.py utility module providing functions for ease of creating LoDTensor in book examples.
  2. Add test code for lod_tensor.py
  3. As an example, modify test_word2vec.py to show how to use the lod_tensor.py module in book examples.

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.

Make the creation of LoDTensor more user friendly in book examples
2 participants