back! must return a tuple

This commit is contained in:
Mike J Innes 2016-06-06 13:26:23 +01:00
parent 74e2551ee9
commit 6d0411f668

View File

@ -46,7 +46,7 @@ function build_backward(Δs, x, params, temps)
ex = tempify(Δs[:(self.$param)]) ex = tempify(Δs[:(self.$param)])
thread!(back, @v(setfield!(:self, ksym, :(self.$k) + ex))) thread!(back, @v(setfield!(:self, ksym, :(self.$k) + ex)))
end end
thread!(back, tempify(Δs[x])) thread!(back, @flow(tuple($(tempify(Δs[x])))))
cse(back) cse(back)
end end