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

Char RNN classification with batch size #1166

Open
paulthemagno opened this issue Sep 25, 2020 · 0 comments · May be fixed by #2954
Open

Char RNN classification with batch size #1166

paulthemagno opened this issue Sep 25, 2020 · 0 comments · May be fixed by #2954
Labels
question Text Issues relating to text tutorials

Comments

@paulthemagno
Copy link

I'm replicating this example for a classification with a char-rnn.

for iter in range(1, n_iters + 1):
    category, line, category_tensor, line_tensor = randomTrainingExample()
    output, loss = train(category_tensor, line_tensor)
    current_loss += loss

I see that every epoch only 1 example is taken and random. I would like that each epoch all the dataset is taken with a specific batch size of examples. I can adjust the code to do this myself but I was wondering if some flags already exist.

Thank you

@holly1238 holly1238 added the Text Issues relating to text tutorials label Jul 27, 2021
@mgs28 mgs28 linked a pull request Jun 24, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Text Issues relating to text tutorials
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants