We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ac746 commit e541fc2Copy full SHA for e541fc2
ppsci/autodiff/ad.py
@@ -85,10 +85,10 @@ def __call__(
85
86
Examples:
87
>>> import ppsci
88
- >>> x = paddle.randn([4, 3])
+ >>> x = paddle.randn([4, 1])
89
>>> x.stop_gradient = False
90
- >>> y = (x * x).sum()
91
- >>> dy_dx = ppsci.autodiff.jacoian(y, x) # doctest: +SKIP
+ >>> y = x * x
+ >>> dy_dx = ppsci.autodiff.jacobian(y, x)
92
"""
93
key = (ys, xs)
94
if key not in self.Js:
@@ -187,7 +187,7 @@ def __call__(
187
>>> x = paddle.randn([4, 3])
188
189
>>> y = (x * x).sin()
190
- >>> dy_dxx = ppsci.autodiff.hessian(y, x, component=0) # doctest: +SKIP
+ >>> dy_dxx = ppsci.autodiff.hessian(y, x, component=0)
191
192
key = (ys, xs, component)
193
if key not in self.Hs:
0 commit comments