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

How to send padding id to model when vocab id:0 is not <PAD> #68

Open
HX-idiot opened this issue Jun 9, 2020 · 0 comments
Open

How to send padding id to model when vocab id:0 is not <PAD> #68

HX-idiot opened this issue Jun 9, 2020 · 0 comments

Comments

@HX-idiot
Copy link

HX-idiot commented Jun 9, 2020

Hello, I found you code calculate the masking using tf.not_equal(input_ids, 0), but in my vocab.txt, 0 refers to a character rather than , how to send manually constructed masking embedding to model?

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