-
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] Optimize input 0D Tensor UnitCase #48007
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
1a2d7d2
to
261b7e4
Compare
9b5fb62
to
a5b8cfe
Compare
self.assertEqual(result[0].shape, ()) | ||
self.assertEqual(result[1].shape, ()) | ||
self.assertEqual(result[3].shape, (1,)) | ||
if len(result) == 3: | ||
self.assertEqual(result[2].shape, (1,)) |
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.
why out_grad's shape is set to (1,)
instead of ()
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.
一个已知问题。有个底层函数的问题,现在还有点单测不兼容,等输入0D完成后我会改正这个地方。
a5b8cfe
to
cf5082f
Compare
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