Skip to content

Commit

Permalink
fix the bug of checking the sparse tensor indices order.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 676209041
  • Loading branch information
pineapplejuice233 authored and tensorflower-gardener committed Sep 19, 2024
1 parent a0040f0 commit 6ef126e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tensorflow/core/tpu/kernels/sparse_core_preprocess_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ Status ComputeRowIdsBeforePadding(const Tensor& indices_or_row_splits,
"to be sorted in ascending order.");
}
*(row_ids_before_padding + i) = current_row_id;
previous_row_id = current_row_id;
}
} else if (indices_or_row_splits.dims() == 1 &&
indices_or_row_splits.NumElements() > 0) {
Expand Down

0 comments on commit 6ef126e

Please sign in to comment.