I would like to ask if it is possible to set some weights in a layer to particular number or zero of pretrained model.
For example, I want to download Lecun model and set some weights in the last layer to number e.x 4
and calculate the accuracy.
How can I do that?
You are after "net surgery". In python you can load the net and get direct access to the stored weights. Then you can tweak them as you pleased and save the modified net.