From 6d0411f668344ab06b9c16d9415bb2f25a8ff73e Mon Sep 17 00:00:00 2001 From: Mike J Innes Date: Mon, 6 Jun 2016 13:26:23 +0100 Subject: [PATCH] back! must return a tuple --- src/rt/code.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rt/code.jl b/src/rt/code.jl index d529835d..0f517815 100644 --- a/src/rt/code.jl +++ b/src/rt/code.jl @@ -46,7 +46,7 @@ function build_backward(Δs, x, params, temps) ex = tempify(Δs[:(self.$param)]) thread!(back, @v(setfield!(:self, ksym, :(self.$k) + ex))) end - thread!(back, tempify(Δs[x])) + thread!(back, @flow(tuple($(tempify(Δs[x]))))) cse(back) end