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

non-slow version of inputTensor #1143

Closed
neubig opened this issue Dec 20, 2017 · 0 comments · Fixed by #1194
Closed

non-slow version of inputTensor #1143

neubig opened this issue Dec 20, 2017 · 0 comments · Fixed by #1194

Comments

@neubig
Copy link
Contributor

neubig commented Dec 20, 2017

Currently the inputTensor function is slow because it swaps the memory layout from numpy's row-major order to DyNet's column-major order. We are thinking of adding inputTensorTranspose that inputs a tensor and transposes its dimensions at the same time. This will allow for inputting numpy tensors without swapping the dimensions, which will probably be important when inputting data in this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant