Skip to content

Conversation

@zrr1999
Copy link
Contributor

@zrr1999 zrr1999 commented Aug 8, 2025

https://docs.pytorch.org/docs/stable/generated/torch.Tensor.index_put_.html#torch.Tensor.index_put_

If accumulate is False, the behavior is undefined if indices contain duplicate elements.

修改 indices生成逻辑,确保生成对 pytorch 来讲定义完整的输入。

@paddle-bot
Copy link

paddle-bot bot commented Aug 8, 2025

Thanks for your contribution!

Copy link
Collaborator

@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

@wanghuancoder wanghuancoder merged commit cba3865 into PFCCLab:main Aug 11, 2025
@cangtianhuang
Copy link
Collaborator

原有的 paddle.index_put 参数初始化实现在 tester/base.py _handle_indices_arg 方法中 ,可以参考参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants