new_name = var_name.replace("global/", "online/")
variables[new_name] = reader.get_tensor(var_name)
// Assign all variables
sess.run([v.assign(variables[v.name.split(":")[0]]) for v in self._variables])
def merge(self, other: "Saver"):
After Change
variables[new_name] = reader.get_tensor(var_name)
// Assign all variables using placeholder
for i in range(len(self._variables)):
variable_name = self._variables[i].name.split(":")[0]
sess.run(self._variable_update_ops[i], {self._variable_placeholders[i]: variables[variable_name]})