Replies: 3 comments 2 replies
-
Same error here. I was currently trying to fix that. Sounds like deepxde/examples/pinn_forward/ode_system.py Lines 15 to 19 in 0736d1d but not for 2nd order systems, e.g, https://github.com/lululxvi/deepxde/blob/master/examples/pinn_forward/ode_2nd.py. |
Beta Was this translation helpful? Give feedback.
-
Hi, use:
|
Beta Was this translation helpful? Give feedback.
-
deepxde/examples/pinn_forward/ode_2nd.py Line 28 in 0736d1d
Line 29 in 0736d1d |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a question about current support for the JAX backend. In particular I am attempting to follow the demos of PDE problems with a JAX backend.
I noticed that the "Complete code" section at the bottom of the demo pages include as the first line:
"""Backend supported: tensorflow.compat.v1, tensorflow, pytorch, paddle"""
Is the absence of
jax
in this list meant to indicate that JAX backend is not supported on the PDE examples?If I try to follow a PDE demo naively, only setting the
DDE_BACKEND=jax
and making minimal modification to the demo, I encounter an error.For example, the Poisson equation in 1D with Dirichlet boundary conditions,
with the
pde
defined by the function(note the modification from the demo, that
jax.numpy.sin
replacestf.sin
)If I attempt to run this code I get an error:
raise ValueError("The component of y is missing.")
Investigating the Trace further, it seems that this error is being thrown in
deepxde/gradients.py
at:Does this error indicate that
dde.grad.hessian
is unsupported with the JAX backend?Alternatively, is there a way I can modify the call
dy_xx = dde.grad.hessian(y, x)
that is different for the JAX backend?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions