Skip to content

Commit f4fdc0c

Browse files
committed
Undo erroneous Hessian modification
1 parent c192182 commit f4fdc0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepxde/gradients.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def __init__(self, y, xs, component=None, grad_y=None):
203203
if backend_name in ["tensorflow.compat.v1", "tensorflow", "pytorch", "paddle"]:
204204
dim_y = y.shape[1]
205205
elif backend_name == "jax":
206-
dim_y = y[0].shape[1]
206+
dim_y = y[0].shape[0]
207207

208208
if dim_y > 1:
209209
if component is None:

0 commit comments

Comments
 (0)