f9e27737834aa42092518755743a26a4785e198c,kur/providers/batch_provider.py,BatchProvider,__iter__,#BatchProvider#,85
Before Change
// this can cause problems unless the data
// source is a ChunkSource with batch size
// set to DEFAULT_CHUNK_SIZE.
queues[i] = numpy.concatenate([queues[i], x])
except ValueError:
logger.exception("Failed to concatenate data for "
"source "%s". Queue had %d entries of shape "
"%s, and now we are trying to add %d entries "
After Change
proceed = True
batches_produced = 0
for it, source in zip(iterators, self.sources):
if source.is_derived():
next(it)
while iterators and proceed:
if batches_produced:
logger.debug("Preparing next batch of data...")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: deepgram/kur
Commit Name: f9e27737834aa42092518755743a26a4785e198c
Time: 2017-01-31
Author: ajsyp@syptech.net
File Name: kur/providers/batch_provider.py
Class Name: BatchProvider
Method Name: __iter__
Project Name: dpressel/mead-baseline
Commit Name: a5b87ac9c17293e05bb5e329612e561b77be5f1e
Time: 2018-07-17
Author: dpressel@gmail.com
File Name: python/baseline/dy/seq2seq/model.py
Class Name: Seq2SeqModel
Method Name: encode_rnn
Project Name: google-research/google-research
Commit Name: 71924fbd68f1e0353f1c128fc21d57d9b70e1f8e
Time: 2020-12-29
Author: barron@google.com
File Name: jaxnerf/nerf/datasets.py
Class Name: LLFF
Method Name: _generate_rays