def inputvars(a):
 return [v for v in inputs(makeiter(a)) if isinstance(v, tt.TensorVariable)]

def inputvars ( a ) : return [ v for v in inputs ( makeiter ( a ) ) if isinstance ( v , tt . TensorVariable ) ]
get the inputs into a theano variables parameters a : theano variable returns r : list of tensor variables that are inputs .