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

Fractional pickup index #75

Closed
marcbelmont opened this issue Jun 11, 2019 · 2 comments
Closed

Fractional pickup index #75

marcbelmont opened this issue Jun 11, 2019 · 2 comments

Comments

@marcbelmont
Copy link

if idx <= 0 or idx >= x_shape[3]-1:

Shouldn't it be:
if idx <= 0 or idx >= x_shape[3]:

@marcbelmont
Copy link
Author

Have you tried picking idx using the maximum of x instead of randomly?

Is fractional pickup also used at inference time? Wouldn't the random nature of the function be a problem?

@Canjie-Luo
Copy link
Owner

Emm, you are right. It's a bug. But I guess the "EOS" is near the x_shape[3] and your change may not bring improvement.
Actually, the fractional pickup is only used in the training. Thanks.

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