修复初始化时 lr

修复初始化时 lr,第1张

2022-04-28 18:36:09,822 - PCN - INFO - [Epoch 1/150][Batch 3601/3621] BatchTime = 0.418 (s) DataTime = 0.001 (s) Losses = ['3.2145', '2.9331'] lr = 0.000100
/home/zyc/miniconda3/lib/python3.7/site-packages/torch/optim/lr_scheduler.py:154: UserWarning: The epoch parameter in `scheduler.step()` was not necessary and is being deprecated where possible. Please use `scheduler.step()` to step the scheduler. During the deprecation, if epoch is different from None, the closed form is used instead of the new chainable form, where available. Please open an issue if you are unable to replicate your use case: https://github.com/pytorch/pytorch/issues/new/choose.
  warnings.warn(EPOCH_DEPRECATION_WARNING, UserWarning)
2022-04-28 18:36:18,431 - PCN - INFO - [Training] EPOCH: 1 EpochTime = 1518.137 (s) Losses = ['4.0280', '6.7910']

此warning 来源 link
具体排除方法也可借鉴此isuue

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/789283.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-05
下一篇 2022-05-05

发表评论

登录后才能评论

评论列表(0条)

保存