MCPcopy Create free account
hub / github.com/HA-Transformer/MAT / get_batch_iterator

Method get_batch_iterator

fairseq/tasks/fairseq_task.py:90–154  ·  view source on GitHub ↗

Get an iterator that yields batches of data from the given dataset. Args: dataset (~fairseq.data.FairseqDataset): dataset to batch max_tokens (int, optional): max number of tokens in each batch (default: None). max_sentences (int,

(
        self, dataset, max_tokens=None, max_sentences=None, max_positions=None,
        ignore_invalid_inputs=False, required_batch_size_multiple=1,
        seed=1, num_shards=1, shard_id=0, num_workers=0, epoch=0,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 11

mainFunction · 0.80
make_batchesFunction · 0.80
validateFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
make_batchesFunction · 0.80
validateFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
get_train_iteratorMethod · 0.80
get_dataset_itrFunction · 0.80

Calls 1

ordered_indicesMethod · 0.45

Tested by

no test coverage detected