memuat model pytorchand freeze

for param in model*.parameters():
    param.requires_grad = False
coder