-
Notifications
You must be signed in to change notification settings - Fork 39
[0-size Tensor Job2 No.62] Add 0-size Tensor support for paddle.nn.functional.margin_cross_entropy #354
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
Conversation
|
Thanks for your contribution! |
wanghuancoder
left a comment
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.
- 运行Torch报错吗?
- 如果要删除,不仅要删除report里的配置还需要删除tester/api_config/7_0_size里的配置
尽量与Torch保持一致,另外可以让Paddle报错提示0非法 |
这里是numpy error,PaddleAPITest 生成数据的规则拦截,没有到torch运行的步骤 PaddleAPITest/tester/paddle_to_torch/rules.py Line 3567 in 2a636db
PaddleAPITest 中是自定义规则,用torch.nn.functional.softmax + torch.nn.functional.cross_entropy,没有torch对应api |
|
Paddle报错的PR PaddlePaddle/Paddle#74010 |
|
@cangtianhuang 已在paddle提交PR修改报错,这里需要删除配置 |
cangtianhuang
left a comment
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.
LGTM

62 paddle.nn.functional.margin_cross_entropy

PaddleAPITest 为numpy error
查看文档,参数2为类别,类别可能需要大于0,为0没有实际含义

https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/margin_cross_entropy_cn.html#margin-cross-entropy
取消配置信息
166 paddle.nn.functional.ctc_loss 取消配置信息
257 paddle.signal.istft 没有配置信息没有修改
151 paddle.nn.functional.affine_grid 用例为numpy error, 取消配置信息