Describe the bug
The generated factor cache does not store the jacobians, because they're assumed to be a deterministic function of the residual expressions and the arguments being differentiated with respect to. This is not the case if you have custom jacobians.
To Reproduce
This test fails (added in symforce_py_factor_test.py):
Describe the bug The generated factor cache does not store the jacobians, because they're assumed to be a deterministic function of the residual expressions and the arguments being differentiated with respect to. This is not the case if you have custom jacobians.
To Reproduce This test fails (added in
symforce_py_factor_test.py
):The test passes if a
Factor._generated_residual_cache = GeneratedResidualCache()
is added before creating the second factor.Expected behavior The above test should pass