Skip to content

Commit 4725969

Browse files
committed
update comments
1 parent 061d34b commit 4725969

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deepxde/gradients/gradients.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ def jacobian(ys, xs, i=None, j=None):
1919
computation.
2020
2121
Args:
22-
ys: Output Tensor of shape (batch_size, dim_y) or (batch_size1, batch_size2, dim_y).
22+
ys: Output Tensor of shape (batch_size, dim_y) or (batch_size_out, batch_size, dim_y).
23+
Here, the `batch_size` is the same one for `xs`, and `batch_size_out` is the
24+
batch size for an additional dimension.
2325
xs: Input Tensor of shape (batch_size, dim_x).
2426
i (int or None): `i`th row. If `i` is ``None``, returns the `j`th column
2527
J[:, `j`].

0 commit comments

Comments
 (0)