You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although JAX promotes a functional programming pattern, it's often useful offering to downstream users also OOP resources that usually simplify the learning curve.
We are currently trying to simplify the application of jit/vmap transformations (see #44 and #48), but there are some use-cases related to r/w classes like high_level.link.Link and high_level.joint.Joint that are still a bit rough (see 48#issuecomment-1746635121).
In their case, the new classes hold both the NN structure and the state (parameters). A caveat -at first look- is that they had to create a new decorator (rings a bell with our previous OOP pattern) for JIT compilation to handle stateful arguments.
Although JAX promotes a functional programming pattern, it's often useful offering to downstream users also OOP resources that usually simplify the learning curve.
Jaxsim follows a similar approach:
jaxsim.physics
are functional.jaxsim.high_level
are object-oriented.We are currently trying to simplify the application of jit/vmap transformations (see #44 and #48), but there are some use-cases related to r/w classes like
high_level.link.Link
andhigh_level.joint.Joint
that are still a bit rough (see 48#issuecomment-1746635121).It would be interesting exploring solutions like those discussed in jax-ml/jax#7919 and jax-ml/jax#17341, with some extra detail provided in #48 (comment).
The text was updated successfully, but these errors were encountered: