mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Restore cleanup_beam method (#6446)
This commit is contained in:
parent
fe9009911a
commit
e0f5646a4a
|
@ -304,3 +304,7 @@ def get_gradient(nr_class, beam_maps, histories, losses):
|
|||
grads[j][i, clas] += loss
|
||||
key = key + tuple([clas])
|
||||
return grads
|
||||
|
||||
|
||||
def cleanup_beam(Beam beam):
|
||||
del beam
|
||||
|
|
Loading…
Reference in New Issue
Block a user