Commit b50e7b98 authored by Adrian Kuegel's avatar Adrian Kuegel Committed by TensorFlower Gardener
Browse files

Clamp gather indices instead of wrap-around.

So far, the behavior for out of bounds cases is undefined as
long as it does not crash. Clamping is cheaper because we don't
need a URem operation, and for DynamicSlice we already do that.

PiperOrigin-RevId: 204096995
parent 95cfd8b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment