Hello everyone,
Hope you are doing well.
So I have modified the weights of a given pre-trained model.
Passing though my evaluation dataset, I cannot detect any changed from before I have change the weights and after with the error induced, even when I changed the weights to extreme cases causing some weights to appear as NaN.
I have stored the corrupted weights back to a specific layer in the model as such
# set manipulated weight to conv layer
with torch.no_grad():
conv.weight.copy_(weight_float32)
print(conv.weight)
My question is that:
- Do I need to re-train the model with the corrupted errors and pass the evaluation dataset
Since the model’s weight are corrupted - I double-check the parameters before and after