mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-29 13:23:40 +03:00
Fix parser resizing for cupy (#6758)
This commit is contained in:
parent
c2a18e4fa3
commit
26c34ab8b0
|
@ -185,7 +185,6 @@ def _resize_lower(model, new_nO):
|
||||||
nI = smaller.maybe_get_dim("nI")
|
nI = smaller.maybe_get_dim("nI")
|
||||||
nF = smaller.maybe_get_dim("nF")
|
nF = smaller.maybe_get_dim("nF")
|
||||||
nP = smaller.maybe_get_dim("nP")
|
nP = smaller.maybe_get_dim("nP")
|
||||||
with use_ops("numpy"):
|
|
||||||
larger = _define_lower(nO=new_nO, nI=nI, nF=nF, nP=nP)
|
larger = _define_lower(nO=new_nO, nI=nI, nF=nF, nP=nP)
|
||||||
# it could be that the model is not initialized yet, then skip this bit
|
# it could be that the model is not initialized yet, then skip this bit
|
||||||
if smaller.has_param("W"):
|
if smaller.has_param("W"):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user