Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Make ConcatDataset work in PytorchTranslateTask multi-path dataset loading #528

Closed
wants to merge 1 commit into from

Conversation

cndn
Copy link
Contributor

@cndn cndn commented May 10, 2019

Summary:
Add/modify necessary functions for ConcatDataset to work in PytorchTranslateTask and replace MultiCorpusSampledDataset which doesn't support mixed batch.

Any idea on how to implement collater here for mixed batch? Now I'm just using the collater of the first dataset.

Differential Revision: D15260872

cndn added a commit to cndn/translate that referenced this pull request May 12, 2019
…ading (#730)

Summary:
Pull Request resolved: facebookresearch/fairseq#730

Pull Request resolved: pytorch#528

Add/modify necessary functions for ConcatDataset to work in PytorchTranslateTask and replace MultiCorpusSampledDataset which doesn't support mixed batch.

Any idea on how to implement collater here for mixed batch? Now I'm just using the collater of the first dataset.

Differential Revision: D15260872

fbshipit-source-id: 833b899b447f7d9b38f3d5aa3744eebcc65c5fe2
…ading (#730)

Summary:
Pull Request resolved: facebookresearch/fairseq#730

Pull Request resolved: pytorch#528

Add/modify necessary functions for ConcatDataset to work in PytorchTranslateTask and replace MultiCorpusSampledDataset which doesn't support mixed batch.

Any idea on how to implement collater here for mixed batch? Now I'm just using the collater of the first dataset.

Reviewed By: liezl200

Differential Revision: D15260872

fbshipit-source-id: 43bf2d946174de5dc13c4d892955b23035b40dff
cndn added a commit to cndn/fairseq that referenced this pull request May 20, 2019
…ading (facebookresearch#730)

Summary:
Pull Request resolved: facebookresearch#730

Pull Request resolved: pytorch/translate#528

Add/modify necessary functions for ConcatDataset to work in PytorchTranslateTask and replace MultiCorpusSampledDataset which doesn't support mixed batch.

Any idea on how to implement collater here for mixed batch? Now I'm just using the collater of the first dataset.

Reviewed By: liezl200

Differential Revision: D15260872

fbshipit-source-id: a9325016420526fae466718c6538c3ce8f1aab2d
@facebook-github-bot
Copy link

This pull request has been merged in 00f1300.

yzpang pushed a commit to yzpang/gold-off-policy-text-gen-iclr21 that referenced this pull request Feb 19, 2021
…ading (#730)

Summary:
Pull Request resolved: facebookresearch/fairseq#730

Pull Request resolved: pytorch/translate#528

Add/modify necessary functions for ConcatDataset to work in PytorchTranslateTask and replace MultiCorpusSampledDataset which doesn't support mixed batch.

Any idea on how to implement collater here for mixed batch? Now I'm just using the collater of the first dataset.

Reviewed By: liezl200

Differential Revision: D15260872

fbshipit-source-id: 14b148c506e9f8ebf4fe60a49f95444d4123d76f
yzpang pushed a commit to yzpang/gold-off-policy-text-gen-iclr21 that referenced this pull request Feb 19, 2021
…ading (#730)

Summary:
Pull Request resolved: facebookresearch/fairseq#730

Pull Request resolved: pytorch/translate#528

Add/modify necessary functions for ConcatDataset to work in PytorchTranslateTask and replace MultiCorpusSampledDataset which doesn't support mixed batch.

Any idea on how to implement collater here for mixed batch? Now I'm just using the collater of the first dataset.

Reviewed By: liezl200

Differential Revision: D15260872

fbshipit-source-id: 14b148c506e9f8ebf4fe60a49f95444d4123d76f
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants