Skip to content

Commit

Permalink
A small update
Browse files Browse the repository at this point in the history
  • Loading branch information
ZongrenZou authored Dec 18, 2023
1 parent 661709a commit f08f21d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/pinn_forward/diffusion_1d_exactBC.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ def func(x):
lambda x, y: x[:, 1:2] * (1 - x[:, 0:1] ** 2) * y + tf.sin(np.pi * x[:, 0:1])
# Backend pytorch
# lambda x, y: x[:, 1:2] * (1 - x[:, 0:1] ** 2) * y + torch.sin(np.pi * x[:, 0:1])
# Backend paddle
# lambda x, y: x[:, 1:2] * (1 - x[:, 0:1] ** 2) * y + paddle.sin(np.pi * x[:, 0:1])
# Backend jax
# lambda x, y: x[..., 1:2] * (1 - x[..., 0:1] ** 2) * y + jnp.sin(np.pi * x[..., 0:1])
# Backend paddle
# lambda x, y: x[:, 1:2] * (1 - x[:, 0:1] ** 2) * y + paddle.sin(np.pi * x[:, 0:1])
)

model = dde.Model(data, net)
Expand Down

0 comments on commit f08f21d

Please sign in to comment.