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

Regarding the zeroPadding/zip_longest function #21

Open
debanjanghosh opened this issue Mar 3, 2021 · 0 comments
Open

Regarding the zeroPadding/zip_longest function #21

debanjanghosh opened this issue Mar 3, 2021 · 0 comments

Comments

@debanjanghosh
Copy link

I don't know if it has been answered before but I was wondering what is the use of the following,
padList = zeroPadding(indexes_batch)
in the function, inputVar(l, voc)

We already have the correct batch here,
indexes_batch = [indexesFromSentence(voc, sentence) for sentence in l]
the indexes_batch contains the input (with length) which gets changed by the zeroPadding function call! Any explanation?

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