Skip to content

Commit 3da1e28

Browse files
committed
update comments
1 parent f778e64 commit 3da1e28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deepxde/gradients/gradients.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def jacobian(ys, xs, i=None, j=None):
2121
Args:
2222
ys: Output Tensor of shape (batch_size, dim_y) or (batch_size_out, batch_size,
2323
dim_y). Here, the `batch_size` is the same one for `xs`, and
24-
`batch_size_out` is the batch size for an additional dimension.
24+
`batch_size_out` is the batch size for an additional/outer dimension.
2525
xs: Input Tensor of shape (batch_size, dim_x).
2626
i (int or None): `i`th row. If `i` is ``None``, returns the `j`th column
2727
J[:, `j`].
@@ -52,7 +52,7 @@ def hessian(ys, xs, component=0, i=0, j=0):
5252
Args:
5353
ys: Output Tensor of shape (batch_size, dim_y) or (batch_size_out, batch_size,
5454
dim_y). Here, the `batch_size` is the same one for `xs`, and
55-
`batch_size_out` is the batch size for an additional dimension.
55+
`batch_size_out` is the batch size for an additional/outer dimension.
5656
xs: Input Tensor of shape (batch_size, dim_x).
5757
component: `ys[:, component]` is used as y to compute the Hessian.
5858
i (int): `i`th row.

0 commit comments

Comments
 (0)