spaCy/spacy/tests/vocab_vectors
adrianeboyd 963bd890c1
Modify Vector.resize to work with cupy and improve resizing (#5216)
* Modify Vector.resize to work with cupy

Modify `Vectors.resize` to work with cupy. Modify behavior when resizing
to a different vector dimension so that individual vectors are truncated
or extended with zeros instead of having the original values filled into
the new shape without regard for the original axes.

* Update spacy/tests/vocab_vectors/test_vectors.py

Co-Authored-By: Matthew Honnibal <honnibal+gh@gmail.com>

Co-authored-by: Matthew Honnibal <honnibal+gh@gmail.com>
2020-03-29 13:51:20 +02:00
..
__init__.py Revert #4334 2019-09-29 17:32:12 +02:00
test_lexeme.py Revert #4334 2019-09-29 17:32:12 +02:00
test_lookups.py Revert #4334 2019-09-29 17:32:12 +02:00
test_similarity.py Revert #4334 2019-09-29 17:32:12 +02:00
test_stringstore.py Revert #4334 2019-09-29 17:32:12 +02:00
test_vectors.py Modify Vector.resize to work with cupy and improve resizing (#5216) 2020-03-29 13:51:20 +02:00
test_vocab_api.py Revert #4334 2019-09-29 17:32:12 +02:00