每次使用高层API启动训练都要报两个错误,咋回事
收藏
是不是高层API有接口不兼容的问题导致的,换成底层API这两个报错还提示吗?
The loss value printed in the log is the current step, and the metric is the average value of previous step.
Epoch 1/100
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/layers/utils.py:77: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
return (isinstance(seq, collections.Sequence) and
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/nn/layer/norm.py:648: UserWarning: When training, we now always track global mean and variance.
"When training, we now always track global mean and variance.")
0
收藏
请登录后评论
这只是info warning之类的吧,算不上错误吧
这种Info warning可以去掉吗
warning不用管哈
你看他说的什么 按照他的要求 是可以不显示的
这个是python版本升级后启用api的警告
这个不影响脚本运行,忽略即可
如果看着不喜欢也可以关闭
import warnings
warnings.filterwarnings("ignore", category=Warning) # 过滤报警信息
这两句执行过后,就不再显示警告信息。但同一代码块的报警信息还会显示,重复执行代码块即可清除
感谢各位大佬的热情回复
这也行呀 我还以为必须升级到3.8
aistudio只有3.7把好像?
2.7已经不能用了, 目前只有3.7了 3.7比较稳
然后就警告3.9的弃用api了~
哈哈 我还没试过3.8 3.8报3.9? 连环报啊
会有的~
我记得不是说3.几有个大bug 坤哥
前段时间爆出来的
哈哈~
我训练也有这个问题,不影响最后的模型生成