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

Training step issue #36

Closed
wagu0809 opened this issue Sep 23, 2019 · 4 comments
Closed

Training step issue #36

wagu0809 opened this issue Sep 23, 2019 · 4 comments

Comments

@wagu0809
Copy link

Hi there, here I found that the step += 1 is under the for loop of train_iter.
And in this case, only the first 100 samples of the first batch are used to train, is that correct?

@nlpyang
Copy link
Owner

nlpyang commented Sep 23, 2019

I am not sure why do you think like that.

@wagu0809
Copy link
Author

I am not sure why do you think like that.

Because I printed the training process and it only gave me 100(default training step is 100) prints and the whole process stopped very soon.
Or do I misunderstand the function of training_step? Does it indicate training epochs or some other use?
Thanks in advance for your time to explain!

@nlpyang
Copy link
Owner

nlpyang commented Sep 25, 2019

training_step is the total number of steps for training.

@wagu0809
Copy link
Author

wagu0809 commented Oct 2, 2019

Clear now, thanks for your explanation!

@wagu0809 wagu0809 closed this as completed Oct 2, 2019
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