mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
4ee8a06149
After the precomputable affine table of shape [nB, nF, nO, nP] is computed, padding with shape [1, nF, nO, nP] is assigned to the first row of the precomputed affine table. However, when we are indexing the precomputed table, we get a row of shape [nF, nO, nP]. CuPy versions before 10.0 cannot paper over this shape difference. This change fixes compatibility with CuPy < 10.0 by squeezing the first dimension of the padding before assignment. |
||
---|---|---|
.. | ||
models | ||
__init__.py | ||
_character_embed.py | ||
_precomputable_affine.py | ||
callbacks.py | ||
extract_ngrams.py | ||
extract_spans.py | ||
featureextractor.py | ||
parser_model.pxd | ||
parser_model.pyx | ||
staticvectors.py | ||
tb_framework.py |