• David Novotny's avatar
    SO3 improvements for stable gradients. · 9f14e82b
    David Novotny authored
    Summary:
    Improves so3 functions to make gradient computation stable:
    - Instead of `torch.acos`, uses `acos_linear_extrapolation` which has finite gradients of reasonable magnitude for all inputs.
    - Adds tests for the latter.
    
    The tests of the finiteness of the gradient in `test_so3_exp_singularity`, `test_so3_exp_singularity`, `test_so3_cos_bound` would fail if the `so3` functions would call `torch.acos` instead of `acos_linear_extrapolation`.
    
    Reviewed By: bottler
    
    Differential Revision: D23326429
    
    fbshipit-source-id: dc296abf2ae3ddfb3942c8146621491a9cb740ee
    9f14e82b
test_so3.py 11.1 KB