Automatic differentiation of composition of variables #2012
-
Consider this snippet of code
Will |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
C_x will evaluate to a_x * u_x + a * u_xx (or the equivalent in higher dimensions) because DeepXDE uses automatic differentiation (via the backend like TensorFlow) to handle the chain rule and product rule implicitly when computing the Jacobian of the composed tensor C. You do not need to manually apply the chain rule or compute the individual Jacobians and Hessians explicitly. |
Beta Was this translation helpful? Give feedback.
C_x will evaluate to a_x * u_x + a * u_xx (or the equivalent in higher dimensions) because DeepXDE uses automatic differentiation (via the backend like TensorFlow) to handle the chain rule and product rule implicitly when computing the Jacobian of the composed tensor C. You do not need to manually apply the chain rule or …