Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues/1317 #1319

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions k2/csrc/intersect_dense_pruned.cu
Original file line number Diff line number Diff line change
Expand Up @@ -605,11 +605,11 @@ class MultiGraphDenseIntersectPruned {
oarc_idx1 = oarc_idx01 - oarc_idx0x,
oarc_idx01x_next = oshape_row_splits2[oarc_idx01 + 1];

int32_t m = oshape_merge_map_data[oarc_idx0123],
t = m % (T + 2), // actually we won't get t == T or t == T + 1
// here since those frames have no arcs.
arcs_idx012 = m / (T + 2); // arc_idx012 into FrameInfo::arcs on time t,
// index of the arc on that frame.
uint32_t m = oshape_merge_map_data[oarc_idx0123];
int32_t t = m % uint32_t(T + 2), // actually we won't get t == T or t == T + 1
// here since those frames have no arcs.
arcs_idx012 = m / uint32_t(T + 2); // arc_idx012 into FrameInfo::arcs on time t,
// index of the arc on that frame.

K2_CHECK_EQ(t, oarc_idx1);

Expand Down
Loading