-
I am using I search Google but don't get help about "Solve Earth Movers Distance problem in pytorch". I know this is not a bug or enhancement and I'm sorry for that, but I really don't know where to ask after these attempts. Do you have any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
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. |
Beta Was this translation helpful? Give feedback.
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.