Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

Commit

Permalink
Correct a minor comment error (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangkuiyi authored and Dan Moldovan committed May 29, 2018
1 parent 5cf5f2e commit 2f06bb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tangent/grad_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def autodiff(func,
If True,
> val = func(*args)
> df = grad(func,preserve_result=True)
> gradval, val = func(*args)
> gradval, val = df(*args)
Note that if taking gradients with respect to multiple arguments,
the primal value will be appended to the return signature. Ex:
> val = func(x,y)
Expand Down Expand Up @@ -353,7 +353,7 @@ def grad(func,
If True,
> val = func(*args)
> df = grad(func,preserve_result=True)
> gradval, val = func(*args)
> gradval, val = df(*args)
Note that if taking gradients with respect to multiple arguments,
the primal value will be appended to the return signature. Ex:
> val = func(x,y)
Expand Down

0 comments on commit 2f06bb6

Please sign in to comment.