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

This code does nothing ? #9

Open
PolarLion opened this issue Oct 3, 2018 · 1 comment
Open

This code does nothing ? #9

PolarLion opened this issue Oct 3, 2018 · 1 comment

Comments

@PolarLion
Copy link

opt_ids = np.delete(opt_ids, ans_idx[i], 0)

Hi, I found this code does nothing for ans_idx[i] is a float number while opt_ids is an int matrix.
Did you mean "opt_ids = np.delete(opt_ids,self.ans_ids[index, i], 0)" instead of "opt_ids = np.delete(opt_ids, ans_idx[i], 0)"
(pytorch 0.4.0, python3..6.5, numpy 1.14.3)

Thank you very much.

@jiangshiling
Copy link

Have you solved these problems?

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