Skip to content

Commit 5b375a5

Browse files
author
KDr2
committed
minor update
1 parent 4f2da6f commit 5b375a5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/macros.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,8 @@ ReverseDiff.@grad_from_chainrules f(x::Real, y::TrackedArray)
316316
macro grad_from_chainrules(fcall)
317317
Meta.isexpr(fcall, :call) && length(fcall.args) >= 2 ||
318318
error("`@grad_from_chainrules` has to be applied to a function signature")
319-
f = fcall.args[1]
319+
f = esc(fcall.args[1])
320320
xs = fcall.args[2:end]
321-
f = esc(f)
322321
args_l, args_r, args_track, args_fixed, arg_types, kwargs = _make_fwd_args(f, xs)
323322

324323
return quote

0 commit comments

Comments
 (0)