-
In Ceres, residuals are often represented as part of a class. In python this looks like:
So the residuals are essentially array of structures. In Jax, to process these, a natural way would be something like:
However several issues arise from this:
I am asking if there is a pattern that I can use which closely matches the canonical formulation used by Ceres. It is true that I can rewrite everything but if I can keep the formulation, it would greatly reduce the changes of error. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Making I don't think there's an easy fix for (2). |
Beta Was this translation helpful? Give feedback.
-
@shoyer Is .scan supposed to return an unflattened version of the objects prior to running? It seems like this shouldn't be difficult to do. |
Beta Was this translation helpful? Give feedback.
-
Answered by #3826 |
Beta Was this translation helpful? Give feedback.
Answered by #3826