title: Can Torch optim package support multiple inputs
body: <p>I'm trying to use the torch7 <a href="https://github.com/torch/optim/blob/master/adam.lua" rel="nofollow" title="optim package adam algorithm implementation">optim package adam algorithm implementation</a>
  for optimizing a neural network which takes two independent inputs. Can this be done? The code seems to only support a single input vector. Is there some other implementation which can take a generic table of inputs?
  The reference usage I saw, upon which I based my code is <a href="https://github.com/jcjohnson/neural-style/blob/master/neural_style.lua" rel="nofollow">here</a></p>