-
Notifications
You must be signed in to change notification settings - Fork 275
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】add RFC for SoftMarginLoss #101
Conversation
PR格式检查通过,你的PR将接受Paddle专家以及开源社区的review,请及时关注PR动态。 |
请先签署cla噢~ |
已经签署,辛苦CR |
paddle.nn.SoftMarginLoss(size_average=None, reduce=None, reduction='mean') -> Tensor | ||
该函数底层调用padde.nn.functional.soft_margin_loss |
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.
这里的size_average和reduce参数是否还有必要呢?
padde.nn.functional.soft_margin_loss(input Tensor[float64 or float32], target Tensor[float64 or float32],size_average [bool optional]默认为true,reduce [bool]作为参数,默认为true, reduction='mean', 'mean' 求平均,'sum'求和,'None', negative, Tensor[float64 or float32],维度为[batch_size,dim]) -> Tensor | ||
|
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 和 target 的维度设置 [batch_size,dim] 是基于什么考虑呢?data_type设置为 float 是基于什么考虑呢?
No description provided.