scalar gradients
This commit is contained in:
parent
ac1448f677
commit
aea1e73cde
@ -1,4 +1,4 @@
|
||||
function gradient(f, xs::AbstractArray...)
|
||||
function gradient(f, xs...)
|
||||
xs = param.(xs)
|
||||
back!(f(xs...))
|
||||
grad.(xs)
|
||||
|
Loading…
Reference in New Issue
Block a user