def any_symbolic(*args):
 for a in args:
  if isinstance(a, theano.Variable):
   return True
 return False

def any_symbolic ( * args ) : for a in args : if isinstance ( a , theano . Variable ) : return True return False
return true iff any a in args is a theano variable .