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

About loss #232

Open
vincezengqiang opened this issue Sep 22, 2020 · 1 comment
Open

About loss #232

vincezengqiang opened this issue Sep 22, 2020 · 1 comment

Comments

@vincezengqiang
Copy link

in the train.py, we calculate loss by: cost = criterion(preds, text, preds_size, length) / batch_size
but the sample provided by pytorch does not divide batch_size, so should we divide batch_Size?

@vincezengqiang
Copy link
Author

the default param :reduction of ctc loss is 'mean', so why still divide batchsize?

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

1 participant