Main reason: LoadBestModelCallback中,训练后加载最佳模型时的 log提示,加入该模型是在哪个 epoch,batch 产生的。
Checklist 检查下面各项是否完成
Please feel free to remove inapplicable items for your PR.
[x] The PR title starts with [$CATEGORY] (例如[bugfix]修复bug,[new]添加新功能,[test]修改测试,[rm]删除旧代码)
[x] Changes are complete (i.e. I finished coding on this PR) 修改完成才提PR
[x] All changes have test coverage 修改的部分顺利通过测试。对于fastnlp/fastnlp/的修改,测试代码必须提供在fastnlp/test/。
[x] Code is well-documented 注释写好,API文档会从注释中抽取
[ ] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change 修改导致例子或tutorial有变化,请找核心开发人员
Changes: 逐项描述修改的内容
LoadBestModelCallback 增加成员变量 self.meta,用于储存生成最佳模型时的 epoch id 和 batch id
Description:LoadBestModelCallback中,训练后加载最佳模型时的 log提示,加入该模型是在哪个 epoch,batch 产生的。
Main reason: LoadBestModelCallback中,训练后加载最佳模型时的 log提示,加入该模型是在哪个 epoch,batch 产生的。
Checklist 检查下面各项是否完成
Please feel free to remove inapplicable items for your PR.
Changes: 逐项描述修改的内容
self.meta
,用于储存生成最佳模型时的 epoch id 和 batch idMention: @x54-729