-
Notifications
You must be signed in to change notification settings - Fork 109
sparse flexedge_J
#931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
sparse flexedge_J
#931
Conversation
quagla
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work!
| d.qLD = wp.zeros((nworld, mjm.nv, mjm.nv), dtype=float) | ||
|
|
||
| if mujoco.mj_isSparse(mjm): | ||
| d.flexedge_J_rownnz = wp.zeros((nworld, mjm.nflexedge), dtype=int) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess all the dense branches of flexedge_J will be deleted once we make it always sparse in mujoco?
|
Also, does this allow for a larger batch size in the cloth benchmark? |
|
created an issue to update relevant benchmarks once we land improved sparsity #938 |
|
as part of the effort to implement sparse Jacobians #88, this pr implements a sparse representation for
flexedge_J.the results for
is_sparse == Truewith benchmark/cloth/scene.xmlsmooth.flex: 252202.40 ns -> 196.00 nsthis pr:
main (f2f7957):