utility method
This commit is contained in:
parent
e4e9794f5e
commit
d162e028bb
@ -50,6 +50,8 @@ function back!(x::TrackedArray, Δ)
|
||||
back!(x.f, Δ)
|
||||
end
|
||||
|
||||
back!(x::TrackedScalar) = back!(x, 1)
|
||||
|
||||
macro back!(x, Δ)
|
||||
quote
|
||||
x = $(esc(x))
|
||||
|
Loading…
Reference in New Issue
Block a user