-
Notifications
You must be signed in to change notification settings - Fork 5.8k
【Hackathon 9th No.2】fix expand 0-size #74812
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
你的PR提交成功,感谢你对开源项目的贡献! |
/re-run all-failed |
/re-run all-failed |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #74812 +/- ##
===========================================
Coverage ? 100.00%
===========================================
Files ? 1
Lines ? 2
Branches ? 0
===========================================
Hits ? 2
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
/re-run all-failed |
PaddleAPITest test: aistudio@jupyter-115720-9209764:~/PaddleAPITest$ python engine.py --paddle_only=True --api_config='paddle.expand(x=Tensor([1, 1, 1],"int64"), shape=Tensor([0],"int32"), )'
test begin: paddle.expand(x=Tensor([1, 1, 1],"int64"), shape=Tensor([0],"int32"), )
W0821 08:47:33.306241 4441 gpu_resources.cc:114] Please NOTE: device: 0, GPU Compute Capability: 7.0, Driver API Version: 12.0, Runtime API Version: 11.8
[paddle error] paddle.expand(x=Tensor([1, 1, 1],"int64"), shape=Tensor([0],"int32"), )
(InvalidArgument) The target shape for expand cannot be empty. Please provide a valid shape.
[Hint: Expected expand_shape.size() > 0, but received expand_shape.size():0 <= 0:0.] (at /home/aistudio/Paddle/paddle/phi/kernels/gpu/expand_kernel.cu:36) |
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.
覆盖率达不到要求。无法豁免覆盖率ci,请添加单测
@DanielSun11 please review if u are free. thx |
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 Category
Execute Infrastructure
PR Types
Bug fixes
Description
error message:
PyTorch 会抛出 RuntimeError,明确提示维度不匹配(expanded size 0 != existing size 3)
paddle这边更改,make sure expand_shape >0,抛出 InvalidArgument。
PaddleAPITest test: