trojans-face-recognizer
trojans-face-recognizer copied to clipboard
RuntimeError: you can only change requires_grad flags of leaf variables.
"item.weight.requires_grad = True" of the forward function of class BlockA, BlockB and BlockC will cause the above error. I found it is caused by the use of DataParallel of the model. So how to train with multiple gpus?