def transfer(var, target):
 if (target == 'cpu'):
  return as_tensor_variable(var)
 else:
  for trans in transfer._others:
   res = trans(var, target)
   if (res is not None):
    return res
 raise ValueError(("Can't transfer to target %s" % (target,)))

def transfer ( var , target ) : if ( target == 'cpu' ) : return as_tensor_variable ( var ) else : for trans in transfer . _others : res = trans ( var , target ) if ( res is not None ) : return res raise ValueError ( ( "Can't transfer to target %s" % ( target , ) ) )
return a version of var transferred to target .