Road to BatchedPytorchWithoutJax - PR1 #122
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the first PR in a long series (still a work in progress) aimed at creating a PyTorch interface that does not require going through JAX for enabling the batch operation
Important commits:
89b6a0b In this commit, I attempted to make the function that generates the rotation from RPY work with batches. To address the mismatch between CasADi and other NumPy-like arrays (PyTorch, NumPy, and JAX), I modified the
CasadiLike
functions so that they behave similarly to NumPy. For instance:shape
property now behaves like the others.reshape
function accounts for the fact that CasADi stores numbers in column-major order, while NumPy-like libraries store them in row-major order.9ea1952 Here, I made the skew function for PyTorch work with batches. Thanks to this modification, there is no longer a need to reshape the base velocity as was done in some algorithms (see
crba
).📚 Documentation preview 📚: https://adam-docs--122.org.readthedocs.build/en/122/