-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【Hackathon No.21】 #114
【Hackathon No.21】 #114
Conversation
PR格式检查通过,你的PR将接受Paddle专家以及开源社区的review,请及时关注PR动态。 |
input:Tensor, 维度为[batchsize,num_classes] | ||
label:Tensor, 维度为[batchsize,num_classes] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- input 和 label 的维度设置 [batch_size,dim] 是基于什么考虑呢?
- input 和 label 接受的 data_type 是什么样子的呢?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
- input:Tensor, 维度为[N,*],其中N是batch_size, `*` 是任意其他维度。数据类型是float32、float64。 | ||
- label:Tensor, 维度为[batchsize,num_classes]维度、数据类型与输入 input 相同。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的 API 参数设计还存在一些问题:
- label 的维度应该与input的维度相同
- label 的数值只能为 1 或者 -1
- label 需要支持 [int32, int64, float32, float64] 数据类型
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
add rfc of SoftMarginLoss