def make_new_valueinfo_name(self): """Returns a name that can be used for a new value_info.""" names = self.get_all_tensor_names() candidate = util.random_string() while candidate in names: candidate = util.random_string() return candidate
def apply(self, model): names = model.get_all_tensor_names() for name in names: model.rename_tensor(name, util.random_string()) # return model_was_changed = False as single iteration is always enough return (model, False)