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

Class CountingIterator

fairseq/data/iterators.py:15–49  ·  view source on GitHub ↗

Wrapper around an iterable that maintains the iteration count. Args: iterable (iterable): iterable to wrap Attributes: count (int): number of elements consumed from this iterator

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

next_epoch_itrMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected