read_sequence

fairseq2.data.read_sequence(seq)[source]

Read every element in seq.

Parameters:

seq (Sequence[Any]) – The sequence to read.

Return type:

DataPipelineBuilder