Skip to content

Commit 12a79c8

Browse files
committed
Fix training.py imports
1 parent 8ed57c1 commit 12a79c8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

keras/engine/training.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
import warnings
99
import copy
1010
import numpy as np
11-
12-
from keras.utils import Sequence
13-
from keras.utils import GeneratorEnqueuer
14-
from keras.utils import OrderedEnqueuer
1511
from scipy.sparse import issparse
1612

1713
try:
@@ -24,6 +20,9 @@
2420
from .. import optimizers
2521
from .. import losses
2622
from .. import metrics as metrics_module
23+
from ..utils.data_utils import Sequence
24+
from ..utils.data_utils import GeneratorEnqueuer
25+
from ..utils.data_utils import OrderedEnqueuer
2726
from ..utils.generic_utils import Progbar
2827
from .. import callbacks as cbks
2928
from ..legacy import interfaces
@@ -2211,8 +2210,8 @@ def evaluate_generator(self, generator, steps=None,
22112210
generator: Generator yielding tuples (inputs, targets)
22122211
or (inputs, targets, sample_weights)
22132212
or an instance of Sequence (keras.utils.Sequence)
2214-
object in order to avoid duplicate data
2215-
when using multiprocessing.
2213+
object in order to avoid duplicate data
2214+
when using multiprocessing.
22162215
steps: Total number of steps (batches of samples)
22172216
to yield from `generator` before stopping.
22182217
Optional for `Sequence`: if unspecified, will use

0 commit comments

Comments
 (0)