Skip to content

Conversation

@enkilee
Copy link
Contributor

@enkilee enkilee commented Jul 22, 2025

PR Category

User Experience

PR Types

Others

Description

#73668

according to pytorch:

import torch try: start = torch.tensor(0) end = torch.tensor(float('inf')) a = torch.arange(start, end, 1, dtype=torch.int32) except RuntimeError as e: print(f"PyTorch error: {e}")

This will output something like:

PyTorch error: arange_cpu(): invalid 'end' inf, must be numeric and finite

So add check in ArangeFunc.

@paddle-bot
Copy link

paddle-bot bot commented Jul 22, 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 Jul 22, 2025
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (develop@6560ee9). Learn more about missing BASE report.

Files with missing lines Patch % Lines
paddle/phi/kernels/cpu/arange_kernel.cc 50.00% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (50.00%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@ Coverage Diff @@ ## develop #74159 +/- ## ========================================== Coverage ? 50.00% ========================================== Files ? 1 Lines ? 2 Branches ? 0 ========================================== Hits ? 1 Misses ? 1 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.
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Jul 22, 2025
@luotao1 luotao1 self-assigned this Jul 22, 2025
@enkilee
Copy link
Contributor Author

enkilee commented Jul 23, 2025

/re-run all-failed

Copy link
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit a46ad13 into PaddlePaddle:develop Jul 24, 2025
90 of 96 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers HappyOpenSource 快乐开源活动issue与PR skip-ci: coverage

4 participants