Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data loading #6

Closed
anxuthu opened this issue May 5, 2021 · 1 comment
Closed

data loading #6

anxuthu opened this issue May 5, 2021 · 1 comment

Comments

@anxuthu
Copy link

anxuthu commented May 5, 2021

Hello! This is a very nice work!

I am looking into your codes and did not figure out why only the first training file ([0]) was loaded in line 146 of translation.py

examples_train = torch.load(data_paths[0])

Thanks!

@tunz
Copy link
Owner

tunz commented May 5, 2021

IIRC, it splits data, and loads one at a time because of memory limitation. The code is just loading the first chunk, and the iterator will pick the next one after completing each one.

It's my old memory, so I could be wrong :)

@tunz tunz closed this as completed May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants