Issue with DiscreteJaxOperator #2167
|
After updating to the latest version, I encountered an error when calling get_conn_flattened function of the DiscreteJaxOperator class. Line 171 tries to convert
I don't understand why we convert traced variables to Numpy arrays in DiscreteJaxOperator class. This seems to contradict with the jax function transformation. Could anyone explain this update? Thanks for any help! |
Replies: 2 comments 7 replies
|
ah, indeed. it's a bug. Can easily be fixed. |
|
Thank you for your reply. For now, can I define a customized function to circumvent this problem? Or should I wait for the next release? |
In any case, I think the issue is that
get_conncannot be vmapped because it has dynamic shape sizes.If you need to do it on batched inputs (or need to vmap) you should use
get_conn_padded