Skip to content

关于topk的设置问题 #1201

Answered by yingfhu
ayicherry asked this question in Q&A
Nov 15, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

参考代码 topk in head,这里head里的topk用于在forward计算完loss之后计算当前batch的acc,需要使用cal_acc来控制。

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ayicherry
Comment options

Answer selected by ayicherry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants