Skip to content

paddle dev 到对矩阵取索引结果异常 #75574

@duqimeng

Description

@duqimeng

bug描述 Describe the Bug

paddle dev对矩阵取索引结果异常
最小复现脚本:
import paddle
edge_index = paddle.arange(17758, dtype='int64')
strided_edge_index = edge_index[::32]
print(strided_edge_index)
print(strided_edge_index[[-1]])
结果是0,

Image 应该是[17728] Image

才正常
paddle 3.1没有此问题,paddle3.2和最新的dev都存在此问题

其他补充信息 Additional Supplementary Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions