Skip to content

Commit

Permalink
fix the bug when multi output needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry-Jzy committed Dec 1, 2024
1 parent 8089a23 commit 18ff1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepxde/gradients/gradients_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def grad_fn(x):
# which is also a tuple. This is useful for further computation, e.g.,
# Hessian.
self.J[i, j] = (
self.J[j][0][:, i : i + 1],
self.J[j][0][..., i : i + 1],
lambda x: self.J[j][1](x)[i : i + 1],
)
return self.J[i, j]
Expand Down

0 comments on commit 18ff1c1

Please sign in to comment.