mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-02 11:20:19 +03:00
Pass optimizer to TrainablePipe.distill
This commit is contained in:
parent
8ca1cf7355
commit
3ce9a3d2c4
|
@ -1092,12 +1092,10 @@ class Language:
|
|||
student_proc.distill(
|
||||
teacher_pipe,
|
||||
examples,
|
||||
sgd=None,
|
||||
sgd=sgd,
|
||||
losses=losses,
|
||||
**component_cfg[name],
|
||||
)
|
||||
if sgd is not None:
|
||||
student_proc.finish_update(sgd)
|
||||
if name in annotates:
|
||||
for doc, eg in zip(
|
||||
_pipe(
|
||||
|
|
Loading…
Reference in New Issue
Block a user