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

the gradient of sinkhorn layer #3

Open
Dark-98 opened this issue Apr 23, 2022 · 1 comment
Open

the gradient of sinkhorn layer #3

Dark-98 opened this issue Apr 23, 2022 · 1 comment

Comments

@Dark-98
Copy link

Dark-98 commented Apr 23, 2022

Sorry, I don't find backward of sinkhorn layer. So how do you use the gradient of this layer. I really need your help.

@pemami4911
Copy link
Owner

Hi,

The Sinkhorn layer (

class Sinkhorn(Module):
) is differentiable, and PyTorch will compute its gradient automatically whenever .backward() is called on the SPG loss (e.g.,
actor_loss.backward()
)

Hope this helps!

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