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

Query about KL divergence calculation #5

Open
npitsillos opened this issue Jul 3, 2021 · 0 comments
Open

Query about KL divergence calculation #5

npitsillos opened this issue Jul 3, 2021 · 0 comments

Comments

@npitsillos
Copy link

Hello and thank you for the implementation! I am trying to implement this in PyTorch and I am stuck on the KL loss. Can you explain to me the dimensionalities on the KL loss and especially this line.

I am having a bit of a hard time following this and it would be nice to get an explanation as I am not familiar with the tsne implementation. From my understanding and tests in my implementation P should be (batch_size, 2) and Q is (batch_size, batch_size) how can the division work there with different matrix sizes?

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