Differentiable-Frechet-Mean icon indicating copy to clipboard operation
Differentiable-Frechet-Mean copied to clipboard

Using Lorentz model returns nan

Open leoamb opened this issue 3 years ago • 2 comments

Hi, thank you for sharing this work. I found that using Lorentz model returns nan most of the time. I am not sure if this is because the Lornetz model is unbounded.

leoamb avatar Feb 17 '21 15:02 leoamb

Hi. It could be for a variety of reasons, depending on your situation. Could you share your test code?

louaaron avatar Feb 17 '21 23:02 louaaron

I used the demo code for batch normalization provided by you but using Lorentz model instead of Poincare. It turned out to be a machine precision problem. When I use float32 tensors, it returns nan but with float64 it works. However, this makes the model twice as large and much more slower to learn. Any ideas on how to modify the code to make it works with float32 tensors?

leoamb avatar Feb 18 '21 13:02 leoamb