Skip to content

Memory improvements#25

Merged
Mxiim merged 1 commit intodevfrom
refactor/floating-precision
Apr 13, 2017
Merged

Memory improvements#25
Mxiim merged 1 commit intodevfrom
refactor/floating-precision

Conversation

@hsson
Copy link
Copy Markdown
Contributor

@hsson hsson commented Apr 13, 2017

This pull request refactors all double precision floating points to single precision to save memory. The function that loads pre-trained embedding matrices was also drastically improved:

  • Halves the running time compared to the old implementation
  • Prevents a memory leak

Loading an embedding matrix with 300 dimensions shouldn't be a problem on even a laptop anymore.

@Mxiim Mxiim merged commit 2e9a3b4 into dev Apr 13, 2017
@Mxiim Mxiim deleted the refactor/floating-precision branch April 13, 2017 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants