Permalink
Show file tree
Hide file tree
11 changes: 11 additions & 0 deletions
11
tensorflow/python/kernel_tests/array_ops/array_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 empty inputs for Upper/LowerBound.
For upper/lower-bound searches via `tf.searchsorted`, if the sorted input is empty, the previous code resulted in a `nullptr` dereference. For emtpy inputs, any sorted search should return a value of 0, meaning that a value would be inserted into the first slot of the array. PiperOrigin-RevId: 460971165
- Loading branch information
1 parent
1bec956
commit bce3717
Showing
2 changed files
with
28 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