mirror of https://github.com/explosion/spaCy.git
Fix import of Optimizer
This commit is contained in:
parent
4d048e94d3
commit
19a2b9bf27
|
@ -31,9 +31,9 @@ except ImportError:
|
|||
cupy = None
|
||||
|
||||
try:
|
||||
from thinc.optimizers import Optimizer
|
||||
from thinc.neural.optimizers import Optimizer
|
||||
except ImportError:
|
||||
from thinc.optimizers import Adam as Optimizer
|
||||
from thinc.neural.optimizers import Adam as Optimizer
|
||||
|
||||
pickle = pickle
|
||||
copy_reg = copy_reg
|
||||
|
|
Loading…
Reference in New Issue