-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[Zero-Dim] support input 0D Tensor for maximum,minimum,allclose,sigmoid_focal_loss #49616
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
label = paddle.to_tensor( | ||
[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]], dtype='float32' | ||
) | ||
one = paddle.to_tensor([1.0], dtype='float32') |
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.
这个可以删了吧
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.
已删除,感谢~
one = paddle.to_tensor([1.0], dtype='float32') | ||
fg_num_0 = paddle.full([], 2.0) | ||
fg_num_1 = paddle.full([1], 2.0) | ||
np.testing.assert_array_equal( |
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.
需要测下反向
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.
已添加反向梯度测试,感谢~
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
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
f37850c
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
PR types
New features
PR changes
APIs
Describe
[Zero-Dim] support input 0D Tensor for some binary api.