Permalink
Show file tree
Hide file tree
7 changes: 7 additions & 0 deletions
7
tensorflow/core/kernels/sparse/sparse_tensor_to_csr_sparse_matrix_op.cc
19 changes: 19 additions & 0 deletions
19
tensorflow/python/kernel_tests/linalg/sparse/csr_sparse_matrix_ops_test.py
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix failed check in SparseTensorToCSRSparseMatrix
Security vulnerability fix. A `CHECK` fails if inputing either an empty `dense_shape`, or a non-rank-2 `indices`. Added appropriate checks and tests. PiperOrigin-RevId: 446053984
- Loading branch information
1 parent
68ae78b
commit ea50a40
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters