this post was submitted on 01 Dec 2023
1 points (100.0% liked)

Machine Learning

1 readers
1 users here now

Community Rules:

founded 1 year ago
MODERATORS
 

Hey friends! Has anyone written any code before where they freeze particular parameters in a layer of a NN?

I don't mean freezing particular layers of a NN, which I can successfully do (e.g.:

for param in resnet18.fc.parameters():
    param.requires_grad = True

What I mean is freezing particular parameters within a layer - by applying some sort of mask or otherwise.

Thanks so much! :)

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here