TypeError: 'JVPTracer' object is not callable #21899
-
I'm not really familiar with jax and not sure how is the function
The error is as follows:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for the clear reproduction! A
The result of
The problem is that |
Beta Was this translation helpful? Give feedback.
Thanks for the clear reproduction!
A
JVPTracer
is basically an array within the context of automatic differentiation. Your code is attempting to call this array as if it were a function, which leads to an error because arrays are not callable. In this line:The result of
(m1_intermsof_Mcqchiachis(Mc,q, chi_s, chi_a) + m2_intermsof_Mcqchiachis(Mc,q, chi_s, chi_a)
is an array; let's call itarr
for simplicity. Then your expression looks like this:T…