def _get_var_ids(self):
    var_ids = []
    for (idx, var) in enumerate(self.tolist()):
        if isinstance(var, (framework.Variable, core.VarBase)):
            var_ids.append(idx)
    return var_ids
def _get_var_ids(self):
    var_ids = []
    for (idx, var) in enumerate(self.tolist()):
        if isinstance(var, (framework.Variable, core.VarBase)):
            var_ids.append(idx)
    return var_ids