scalar gradients

This commit is contained in:
Mike J Innes 2018-06-21 13:12:42 +01:00
parent ac1448f677
commit aea1e73cde

View File

@ -1,4 +1,4 @@
function gradient(f, xs::AbstractArray...)
function gradient(f, xs...)
xs = param.(xs)
back!(f(xs...))
grad.(xs)