some fiddling.
automatically set theano input for decoder part.