Thanks for debugging this issue!



 hzxie:

According to TF’s API:

Note that on CPU, if an out of bound index is found, an error is returned. On GPU, if an out of bound index is found, a 0 is stored in the corresponding output value.



That seems like a weird strategy to me.