• Jeremy Reizenstein's avatar
    matrix_to_quaternion corner case · 4d52f9fb
    Jeremy Reizenstein authored
    Summary: Issue #119. The function `sqrt(max(x, 0))` is not convex and has infinite gradient at 0, but 0 is a subgradient at 0. Here we implement it in such a way as to give 0 as the gradient.
    
    Reviewed By: gkioxari
    
    Differential Revision: D24306294
    
    fbshipit-source-id: 48d136faca083babad4d64970be7ea522dbe9e09
    4d52f9fb
test_rotation_conversions.py 7.79 KB