better error message
This commit is contained in:
parent
159ca536ec
commit
73a51400b6
@ -41,7 +41,7 @@ end
|
|||||||
Base.setindex!(xs::TrackedArray, v, i...) =
|
Base.setindex!(xs::TrackedArray, v, i...) =
|
||||||
error("Can't differentiate `setindex!`")
|
error("Can't differentiate `setindex!`")
|
||||||
|
|
||||||
back!(::TrackedArray) = error("Use back!(x, Δ)")
|
back!(::TrackedArray) = error("Value is not scalar; use `back!(sum(x))` or `back!(x, Δ)`")
|
||||||
|
|
||||||
# Fallthrough methods
|
# Fallthrough methods
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user