CollateOptionsOverride
- class fairseq2.data.CollateOptionsOverride(selector, pad_value=None, pad_to_multiple=1)[source]
Bases:
object
Overrides how the collater should create batch for a particular column.
Useful if not all columns should use the same padding idx, or padding multiple. See
Collater
for details.- Parameters:
selector (str) – The columns this overrides applies to. See Column syntax for details on how to specify columns.