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

is get_sequence_actual_length right? #10

Closed
JimmyCai opened this issue Oct 24, 2017 · 1 comment
Closed

is get_sequence_actual_length right? #10

JimmyCai opened this issue Oct 24, 2017 · 1 comment

Comments

@JimmyCai
Copy link

Hi liu,

when tensor in function get_sequence_actual_length(utils.py) is:
[[-0.1,0.1,0]]
it will return:
[0]
but actually, it is[2]
so, it is wrong, right?

@liu-nlper
Copy link
Owner

Hi, you are right, but the argument "tensor" has no negative value.

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