Open SilviaLauraPintea opened 8 years ago
I'm getting the same error! @SilviaLauraPintea Have you found a solution?
How to solve this problem? I also meet the same error! @SilviaLauraPintea @KalraA @ry Thank you very much~
Anybody solved this?
I'm having this issue as well. Has anybody been able to figure it out yet?
I also meet the same error! How to solve that? @SilviaLauraPintea @KalraA @ry @nu1ptr Thanks
Hi,
I am trying to add a new fc layer on top of the avgpool resnet layer with a different number of outputs to suit my problem. I do not want to only retrain the new fc but also the previous layers. So I need the gradients of the previous layers as well. Unfortunately this does not seem to work. I have tried on a dummy net that I have created to save it (without the gradients -- so similar to the provided resnet meta and ckpt) and then load it and add a new fc layer and this worked without problems.
Here is a snapshot of my retraining code:
I am not sure why for the resnet model I get this error:
while for my own toy model the same code seems to work.
Thanks a lot. Cheers, Silvia