OneCycleLR — PyTorch 1.12 documentation 进入上面这个文件中,点击source后把OneCycleLR的代码复制到 torch.optim.lr_scheduler中 即可