File size: 329 Bytes
5fa1a76 |
1 2 3 4 5 6 |
you should add statements like: python assert ( model_pointer.weight.shape == pretrained_weight.shape ), f"Pointer shape of random weight {model_pointer.shape} and array shape of checkpoint weight {pretrained_weight.shape} mismatched" Besides, you should also print out the names of both weights to make sure they match, e.g. |