-
Hello! The guide says
Now it seems to me that this function is also pure, as it only uses ref internally:
The difference is that it performs a computation using a traced value (x). When called with vmap this fails with the error:
I do understand that the vmap limitations are addressed later in the guide, but I don't see why the limitations would apply here, since the function seems to be pure (in my view at least). IMO the expected behavior would be to silently replicate the array ref over the batched axis as it would be done with a normal array. Thanks in advance to anyone that could clarify this for me 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think this is just a bug on our end. (ArrayRefs haven't been tested much yet so bugs are expected.) Thanks for letting us know about it. |
Beta Was this translation helpful? Give feedback.
I think this is just a bug on our end. (ArrayRefs haven't been tested much yet so bugs are expected.) Thanks for letting us know about it.