Skip to content

Validate gather coordinate indices at runtime#3534

Open
TristanInSec wants to merge 1 commit intotensorflow:mainfrom
TristanInSec:fix-gather-bounds-check
Open

Validate gather coordinate indices at runtime#3534
TristanInSec wants to merge 1 commit intotensorflow:mainfrom
TristanInSec:fix-gather-bounds-check

Conversation

@TristanInSec
Copy link
Copy Markdown

@TristanInSec TristanInSec commented Apr 17, 2026

Replace TFLITE_DCHECK bounds checks with runtime validation that returns kTfLiteError when a coordinate index is negative or exceeds the axis size, consistent with the approach used in GatherNd.

BUG=b/general

Replace TFLITE_DCHECK bounds checks with runtime validation that
returns kTfLiteError when a coordinate index is negative or exceeds
the axis size, consistent with the approach used in GatherNd.
@TristanInSec TristanInSec requested a review from a team as a code owner April 17, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants