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

Pytorch implementation of LNS #1

Open
zhujiem opened this issue Jun 15, 2023 · 0 comments
Open

Pytorch implementation of LNS #1

zhujiem opened this issue Jun 15, 2023 · 0 comments

Comments

@zhujiem
Copy link

zhujiem commented Jun 15, 2023

LNS provides a very effiecient way for adaptative-hard negative sampling. I'm very interested in its use in contrastive learning applications. Do you think it is possible to implement LNS in pytorch or tensorflow? I did not figure it out since hashing seems not work in batch tensor computation, especially when each buckets have different number of samples. Many 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

1 participant