def make_shared_replacements(vars, model):
 othervars = (set(model.vars) - set(vars))
 return {var: theano.shared(var.tag.test_value, (var.name + '_shared')) for var in othervars}

def make_shared_replacements ( vars , model ) : othervars = ( set ( model . vars ) - set ( vars ) ) return { var : theano . shared ( var . tag . test_value , ( var . name + '_shared' ) ) for var in othervars }
makes shared replacements for all *other* variables than the ones passed .