When using implicit backpropagation and batched matrix lie group variables, the following error occurs in _merge_infos method in the NonlinearOptimizer class when calling forward():
Note: Batched dimension is 2.
The error is due to the dimension mismatch between idx_no_grad and the sol_no_grad/sol_grad tensors. The variable tensors have three dimensions because they are batched SO3 tensors, and the SO3 tensors are represented by 3x3 matrices.
Should get the dimension right. A workaround would be to check the dimension of sol_grad and unsqueeze idx_no_grad accordingly, but I don't know if this is the best approach:
š Bug
When using implicit backpropagation and batched matrix lie group variables, the following error occurs in
_merge_infos
method in theNonlinearOptimizer
class when callingforward()
:Note: Batched dimension is 2.
The error is due to the dimension mismatch between
idx_no_grad
and thesol_no_grad
/sol_grad
tensors. The variable tensors have three dimensions because they are batched SO3 tensors, and the SO3 tensors are represented by 3x3 matrices.Steps to Reproduce
Example Code:
Expected behavior
Should get the dimension right. A workaround would be to check the dimension of sol_grad and unsqueeze idx_no_grad accordingly, but I don't know if this is the best approach:
System Info