Skip to content

Commit e12bf1f

Browse files
authored
Reinsert reverse mode gradient docstring (#2311)
1 parent 4a5316e commit e12bf1f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sugar.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,13 @@ grad = gradient(ReverseWithPrimal, mul, [2.0], Const([3.0]))
259259
```
260260
261261
"""
262-
# TODO eventually add an invalidation edge here from inactive_type
263262
@generated function gradient(
264263
rm::ReverseMode{ReturnPrimal,RuntimeActivity,ABI,Holomorphic,ErrIfFuncWritten},
265264
f::F,
266265
x::ty_0,
267266
args::Vararg{Any,N},
268267
) where {F,ty_0,ReturnPrimal,RuntimeActivity,ABI,Holomorphic,ErrIfFuncWritten,N}
268+
# TODO eventually add an invalidation edge here from inactive_type
269269
rargs = Union{Symbol,Expr}[:x]
270270
gentys = Type[x]
271271
acts = Symbol[Symbol("act_0")]
@@ -1159,4 +1159,3 @@ grad
11591159
)
11601160
return nothing
11611161
end
1162-

0 commit comments

Comments
 (0)