본문 바로가기

Deep Learning

[Pytorch] Stop updating params of a layer of a model during back-propagation

반응형
for param in self.model.Traj_Dec.decoder_mlp.parameters():
    param.requires_grad = False