vscode-pytorch icon indicating copy to clipboard operation
vscode-pytorch copied to clipboard

'freeze' syntax is incorrect and PyTorch won't tell you

Open v-iashin opened this issue 3 years ago • 0 comments

https://github.com/SvenBecker/vscode-pytorch/blob/6cdf65101dfaf66609fa94387c57b12282d7ac77/snippets/pytorch.json#L192

This should be requires_grad (with s on the end). The worst thing is that PyTorch does not complain about it and keeps all params "trainable".

v-iashin avatar Feb 04 '22 11:02 v-iashin