Replies: 1 comment 3 replies
-
No, there is no way to use an The best alternative is to use Hope that helps! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I have a function that extracts non-zero diagonals from an input square matrix. It would be better if I wrap it with
@jax.jit
but I am getting stuck at a step where I actually have to check if the diagonals contain any non-zero values as I have conditional logic based on that condition.So the conditional logic based on
jnp.any
fails, I tried an implementation withjax.lax.cond
but since I append stuff to a list, it fails. I'm going around in circle thus why I am posting here.Anyone could help me out with this? Thank you in advance 😃
Beta Was this translation helpful? Give feedback.
All reactions