mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 20:28:20 +03:00
b2ef6100af
Previously, pipelines with shared tok2vec weights would call the tok2vec backprop callback multiple times, once for each pipeline component. This caused errors for PyTorch, and was inefficient. Instead, accumulate the gradient for all but one component, and just call the callback once. |
||
---|---|---|
.. | ||
__init__.py | ||
entityruler.py | ||
functions.py | ||
hooks.py | ||
morphologizer.pyx | ||
pipes.pyx | ||
tok2vec.py |