What triggers recompilation for sparse input? #19658
-
In simple trials I have found that recompilation is triggered based on the shape of array i.e. just like for dense counterparts. My second question is what is the recommended way to grow sparse array to a given shape ( not reshaping) as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
If you're talking about Regarding your second question: it would be helpful if you could show example code demonstrating the type of operation you'd like to do. |
Beta Was this translation helpful? Give feedback.
If you're talking about
jax.experimental.sparse
objects: compilation is cached based on the static metadata (i.e. shape and dtype) as well as changes to the shape and dtype of the dense buffers representing the sparse matrix.Regarding your second question: it would be helpful if you could show example code demonstrating the type of operation you'd like to do.