Open xaohuicai opened 4 years ago
model.module.module_list[Drop_layer[i]].reset(block_size[i], keep_p[i]) torch.save(model.module.state_dict..) all meet this problem,I don't know how to solve this.
may be you can replace it with model.state_dict..
model.module.module_list[Drop_layer[i]].reset(block_size[i], keep_p[i]) torch.save(model.module.state_dict..) all meet this problem,I don't know how to solve this.
are you meet the error? RuntimeError: Function 'MulBackward0' returned nan values in its 1th output.
model.module.module_list[Drop_layer[i]].reset(block_size[i], keep_p[i]) torch.save(model.module.state_dict..) all meet this problem,I don't know how to solve this.
may be you can replace it with model.state_dict.. thanks!I will try it.
model.module.module_list[Drop_layer[i]].reset(block_size[i], keep_p[i]) torch.save(model.module.state_dict..) all meet this problem,I don't know how to solve this.