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

When do Validation #12

Open
celiazzx opened this issue Aug 1, 2022 · 1 comment
Open

When do Validation #12

celiazzx opened this issue Aug 1, 2022 · 1 comment

Comments

@celiazzx
Copy link

celiazzx commented Aug 1, 2022

Have you met this problem?

self.queue[ind, :, ptr:ptr + batch_size] = keys.T
RuntimeError: The expanded size of the tensor (6) must match the existing size (16) at non-singleton dimension 1. Target sizes: [128, 6]. Tensor sizes: [128, 16]

@celiazzx
Copy link
Author

celiazzx commented Aug 2, 2022

It looks like ptr will begin at 506 or other numbers when ContrastiveTrainer do the forward, it will leads to when tload the last batch data it will out of queue range

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