在 Loss 配置中增加 out_channel, 方便自定义数据训练 #9439
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在 公式识别CAN 中
发现自定义数据集训练的时候,当词表数量变化、修改对应 Architecture 下的 out_channel、word_num、counting_decoder_out_channel 会导致维度不匹配,查看源码发现 Loss 中的 out_channel 的写死的
在 CAN 算法的配置文件 Loss 下增加 out_channel 字段,同时修改 Loss 代码使用配置信息