Skip to content

Conversation

enkilee
Copy link
Contributor

@enkilee enkilee commented Aug 21, 2025

PR Category

Execute Infrastructure

PR Types

Bug fixes

Description

error message:

terminate called after throwing an instance of 'std::length_error'
  what():  vector::_M_fill_insert


--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
0   paddle::pybind::ThrowExceptionToPython(std::__exception_ptr::exception_ptr)

----------------------
Error Message Summary:
----------------------
FatalError: `Process abort signal` is detected by the operating system.
  [TimeInfo: *** Aborted at 1755763880 (unix time) try "date -d @1755763880" if you are using GNU date ***]
  [SignalInfo: *** SIGABRT (@0x3e800000ab5) received by PID 2741 (TID 0x7fbb3fcfa740) from PID 2741 ***]

Aborted (core dumped)

PyTorch 会抛出 RuntimeError,明确提示维度不匹配(expanded size 0 != existing size 3)

paddle这边更改,make sure expand_shape >0,抛出 InvalidArgument。

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)

aistudio@jupyter-115720-9209764:~/PaddleAPITest$ 

Copy link

paddle-bot bot commented Aug 21, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Aug 21, 2025
@enkilee
Copy link
Contributor Author

enkilee commented Aug 22, 2025

/re-run all-failed

@enkilee
Copy link
Contributor Author

enkilee commented Aug 22, 2025

/re-run all-failed

@codecov-commenter
Copy link

codecov-commenter commented Aug 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@a4cda6b). Learn more about missing BASE report.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@enkilee
Copy link
Contributor Author

enkilee commented Aug 26, 2025

/re-run all-failed

@enkilee
Copy link
Contributor Author

enkilee commented Aug 29, 2025

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)

Copy link
Contributor

@DanielSun11 DanielSun11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

覆盖率达不到要求。无法豁免覆盖率ci,请添加单测

@enkilee
Copy link
Contributor Author

enkilee commented Sep 8, 2025

@DanielSun11 please review if u are free. thx

Copy link
Contributor

@DanielSun11 DanielSun11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DanielSun11 DanielSun11 merged commit f0512ac into PaddlePaddle:develop Sep 8, 2025
58 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants