Error when trying to implement custom derivative with Bessel function of the first kind #15371
Unanswered
alexandermm
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi several comments!
@custom_jvp
def modJv(z, v, a):
return jv(v, a*jnp.sqrt(z))
modJv = jax.custom_jvp(modJv) You have already decorated modJv with custom_jvp, so line
The result will be
Recommend use kwargs wih partial like Hope it helps |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am trying to implement a function that uses jv from the scipy library written with a wrapper to work in jax. When I run the code,
the error given is AttributeError: No JVP defined for custom_jvp function modJv using defjvp. But I did define it using @custom_jvp. What is the issue here? The code is shown below.
Thank you,
Alex
Beta Was this translation helpful? Give feedback.
All reactions