mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-22 10:02:01 +03:00
Type annotation
Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
This commit is contained in:
parent
8df2a3efdd
commit
90fcc3bdb0
|
@ -506,7 +506,7 @@ def train_while_improving(
|
|||
|
||||
|
||||
def subdivide_batch(
|
||||
batch: Union[Iterable[Doc], Iterable[Example]], accumulate_gradient
|
||||
batch: Union[Iterable[Doc], Iterable[Example]], accumulate_gradient: int
|
||||
):
|
||||
batch = list(batch)
|
||||
if len(batch):
|
||||
|
|
Loading…
Reference in New Issue
Block a user