Skip to content

Conversation

@co63oc
Copy link
Contributor

@co63oc co63oc commented Jun 12, 2025

PR Category

Execute Infrastructure

PR Types

Improvements

Description

index_sample 修改前向和反向,cpu/gpu/xpu kernel
infermeta 去掉0-size判断,symbolic shape 中没有对应代码

PaddleAPITest 测试通过,CPU/GPU错误都为numpy error
image

@paddle-bot
Copy link

paddle-bot bot commented Jun 12, 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 Jun 12, 2025
@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Jun 13, 2025
@DanielSun11
Copy link
Contributor

x = torch.randn([3, 0])
index = torch.randn([3, 3]).type(torch.int64)
batch_size = x.shape[0]
batch_idx = torch.arange(batch_size).unsqueeze(1).expand_as(index)
result = x[batch_idx, index]

这个测试case在最新的paddleAPITest accuracy模式下不报[torch error]吗?后续所有的修改都需要进行paddleAPITest accuracy模式的验证。accuracy模式下paddleAPITest会先跑torch,报[paddle error]和[accuracy error]的case是仍然存在问题的,复测不能通过。如果是PaddleAPITest的问题,也请反馈

@co63oc
Copy link
Contributor Author

co63oc commented Jun 13, 2025

x = torch.randn([3, 0])
index = torch.randn([3, 3]).type(torch.int64)
batch_size = x.shape[0]
batch_idx = torch.arange(batch_size).unsqueeze(1).expand_as(index)
result = x[batch_idx, index]

这个测试case在最新的paddleAPITest accuracy模式下不报[torch error]吗?后续所有的修改都需要进行paddleAPITest accuracy模式的验证。accuracy模式下paddleAPITest会先跑torch,报[paddle error]和[accuracy error]的case是仍然存在问题的,复测不能通过。如果是PaddleAPITest的问题,也请反馈

不报[torch error],这是测试时paddleAPITest 在生成随机数据时报的错误,还在跑torch的步骤之前

@DanielSun11
Copy link
Contributor

x = torch.randn([3, 0])
index = torch.randn([3, 3]).type(torch.int64)
batch_size = x.shape[0]
batch_idx = torch.arange(batch_size).unsqueeze(1).expand_as(index)
result = x[batch_idx, index]

这个测试case在最新的paddleAPITest accuracy模式下不报[torch error]吗?后续所有的修改都需要进行paddleAPITest accuracy模式的验证。accuracy模式下paddleAPITest会先跑torch,报[paddle error]和[accuracy error]的case是仍然存在问题的,复测不能通过。如果是PaddleAPITest的问题,也请反馈

不报[torch error],这是测试时paddleAPITest 在生成随机数据时报的错误,还在跑torch的步骤之前

x = torch.randn([3, 0])
index = torch.randn([3, 3]).type(torch.int64)
batch_size = x.shape[0]
batch_idx = torch.arange(batch_size).unsqueeze(1).expand_as(index)
result = x[batch_idx, index]

这个测试case在最新的paddleAPITest accuracy模式下不报[torch error]吗?后续所有的修改都需要进行paddleAPITest accuracy模式的验证。accuracy模式下paddleAPITest会先跑torch,报[paddle error]和[accuracy error]的case是仍然存在问题的,复测不能通过。如果是PaddleAPITest的问题,也请反馈

不报[torch error],这是测试时paddleAPITest 在生成随机数据时报的错误,还在跑torch的步骤之前

x = torch.randn([3, 0])
index = torch.randn([3, 3]).type(torch.int64)
batch_size = x.shape[0]
batch_idx = torch.arange(batch_size).unsqueeze(1).expand_as(index)
result = x[batch_idx, index]

这个测试case在最新的paddleAPITest accuracy模式下不报[torch error]吗?后续所有的修改都需要进行paddleAPITest accuracy模式的验证。accuracy模式下paddleAPITest会先跑torch,报[paddle error]和[accuracy error]的case是仍然存在问题的,复测不能通过。如果是PaddleAPITest的问题,也请反馈

不报[torch error],这是测试时paddleAPITest 在生成随机数据时报的错误,还在跑torch的步骤之前

这个问题paddleAPITest已经修复了,请拉取最新代码再跑一遍。现在应该是报numpy error了,请检查是否还有paddle error

@co63oc
Copy link
Contributor Author

co63oc commented Jun 13, 2025

x = torch.randn([3, 0])
index = torch.randn([3, 3]).type(torch.int64)
batch_size = x.shape[0]
batch_idx = torch.arange(batch_size).unsqueeze(1).expand_as(index)
result = x[batch_idx, index]

这个测试case在最新的paddleAPITest accuracy模式下不报[torch error]吗?后续所有的修改都需要进行paddleAPITest accuracy模式的验证。accuracy模式下paddleAPITest会先跑torch,报[paddle error]和[accuracy error]的case是仍然存在问题的,复测不能通过。如果是PaddleAPITest的问题,也请反馈

不报[torch error],这是测试时paddleAPITest 在生成随机数据时报的错误,还在跑torch的步骤之前

x = torch.randn([3, 0])
index = torch.randn([3, 3]).type(torch.int64)
batch_size = x.shape[0]
batch_idx = torch.arange(batch_size).unsqueeze(1).expand_as(index)
result = x[batch_idx, index]

这个测试case在最新的paddleAPITest accuracy模式下不报[torch error]吗?后续所有的修改都需要进行paddleAPITest accuracy模式的验证。accuracy模式下paddleAPITest会先跑torch,报[paddle error]和[accuracy error]的case是仍然存在问题的,复测不能通过。如果是PaddleAPITest的问题,也请反馈

不报[torch error],这是测试时paddleAPITest 在生成随机数据时报的错误,还在跑torch的步骤之前

x = torch.randn([3, 0])
index = torch.randn([3, 3]).type(torch.int64)
batch_size = x.shape[0]
batch_idx = torch.arange(batch_size).unsqueeze(1).expand_as(index)
result = x[batch_idx, index]

这个测试case在最新的paddleAPITest accuracy模式下不报[torch error]吗?后续所有的修改都需要进行paddleAPITest accuracy模式的验证。accuracy模式下paddleAPITest会先跑torch,报[paddle error]和[accuracy error]的case是仍然存在问题的,复测不能通过。如果是PaddleAPITest的问题,也请反馈

不报[torch error],这是测试时paddleAPITest 在生成随机数据时报的错误,还在跑torch的步骤之前

这个问题paddleAPITest已经修复了,请拉取最新代码再跑一遍。现在应该是报numpy error了,请检查是否还有paddle error

没有paddle error了,CPU/GPU错误都为numpy error
image

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

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 协调云飞Review

@luotao1 luotao1 merged commit 06b6078 into PaddlePaddle:develop Jun 17, 2025
49 of 51 checks passed
@co63oc co63oc deleted the e16 branch June 30, 2025 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants