提交 80cb1f55 authored 作者: sergii-gavrylov's avatar sergii-gavrylov

Update gradient.py

Fix typo in doc string.
上级 6761f0d1
......@@ -1919,7 +1919,7 @@ def grad_clip(x, lower_bound, upper_bound):
x = theano.tensor.scalar()
z = theano.tensor.grad(grad_clip(x)**2, x)
z = theano.tensor.grad(grad_clip(x, -1, 1)**2, x)
z2 = theano.tensor.grad(x**2, x)
f = theano.function([x], outputs = [z, z2])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论