Skip to content

How to get GPU accleration for solving Gromov Wasserstain problem? #369

Answered by rflamary
rucnyz asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, I converted this to discussion that is a better place.

GW solver use the exact OT solver in C++ so it will not be accelerated in GPU. As stated in the documentation the data will be copied back to CPU to solve the problem and then converted back to GPU. There is to the best of my knowledge no exact OT solve run GPU but using directly pytorch array on emd2 or gromov_wasserstein2 function will return a differentiable loss on CPU or GPU.

If you need GPU acceleration you can use entropic GW that provide smooth losses and will run fully on GPU.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rucnyz
Comment options

@rflamary
Comment options

@rucnyz
Comment options

Answer selected by rucnyz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #368 on April 25, 2022 05:50.