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

Created ctc_loss function in objectives.py #1008

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

selcouthlyBlue
Copy link
Contributor

@selcouthlyBlue selcouthlyBlue commented Jan 26, 2018

It would be nice if the sequence_length argument can be passed when the function is called. Addresses feature request #95

The functions within the renamed module are not losses but regularizers.
ctc_loss requires a sequence_length argument and it would be nice if it can be passed when it's called.
@selcouthlyBlue
Copy link
Contributor Author

I found a way for the sequence_length argument to be determined internally. The ctc_loss assumes the following:

  1. The eos_token is first in the classes for ctc and is of index 0.
  2. The sequence length is the number of time steps of each input tensor.

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

Successfully merging this pull request may close these issues.

None yet

1 participant