Hello ,
when I’m passing the value of the L_of_omega is giving the following error
solution removed
TypeError: Expected a callable value, got 110.72000122070312
and
when I’m passing the function L_of_omega it is throwing this error
solution removed
TypeError: Value ‘<function L_of_omega at 0x7f9680655f70>’ with dtype object is not a valid JAX array type. Only arrays of numeric types are supported by JAX.
someone please help
Hi!
Please avoid posting your solution in the forums, because it goes against our community guidelines! Instead we try to debug your error with you and in a last case we can share information privately.
As I can see here, you should pass the function L_of_omega as an argument for grad, then apply it to the value omega_array[i].
Thanks,
Lucas
Still the same problem sir
while passing the function as argument it is showing
“with dtype object is not a valid JAX array type. Only arrays of numeric types are supported by JAX.”
while trying to pass the numeric value it is showing
“TypeError: Expected a callable value, got 110.72000122070312”
please help me to find the solution
Thanks
Thanks sir
it helped
https://jax.readthedocs.io/en/latest/_autosummary/jax.grad.html