`segment_csr` crashes Python when provided invalid `indptr`
ArchieGertsman opened this issue · comments
ArchieGertsman commented
Matthias Fey commented
Yes, the input needs to be
a = torch.arange(10)
indptr = torch.tensor([0, 10]) # invalid ptr
segment_csr(a, indptr)
In general, it is hard to check for invalid inputs in advance since this will lead to costly device transfers (e.g., querying indptr[0]
and indptr[-1]
).
github-actions commented
This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved?