MCPcopy Create free account
hub / github.com/XuezheMax/flowseq / batch_iter

Function batch_iter

flownmt/data/dataloader.py:159–186  ·  view source on GitHub ↗

Yield elements from data in chunks of batch_size, where each chunk size is a multiple of batch_size_multiple. This is an extended version of torchtext.data.batch.

(data, batch_size, batch_size_fn=None, shuffle=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_poolMethod · 0.85

Calls 1

batch_size_fnFunction · 0.85

Tested by

no test coverage detected