first of all, Variable was deprecated long ago and no longer used.
You can achieve that by passing a list of tensors
[input]
to the optimizer (or something really similar to that), read optimizer docs.