Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenzek committed Oct 10, 2023
1 parent 4b71687 commit 51f4d2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,8 @@ def_data_pipeline(py::module_ &data_module)
opt_overrides = *std::move(maybe_opt_overrides);

map_fn f = collater(opts, std::move(opt_overrides));
element_mapper mapper{f, std::nullopt};

self = std::move(self).map(std::move(mapper), num_parallel_calls);
self = std::move(self).map(std::move(f), num_parallel_calls);

return self;
},
Expand Down
1 change: 1 addition & 0 deletions src/fairseq2/data/data_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def collate(
) -> Self:
"""Concatenate a list of inputs into a single inputs.
This is equivalent to calling `.map(Collater())`.
See :py:class:`fairseq2.data.Collater` for details.
"""

Expand Down

0 comments on commit 51f4d2f

Please sign in to comment.