Hello,
Try the snippet as follows:
old_params = {}
for name, params in model.named_parameters():
    old_params[name] = params.clone()

# perform update
for name, params in model.named_parameters():
    if (old_params[name] == params).all():
        print("True")