Avoid selecting a point that is not valid (i.e. is padding) as a neighbor.
Avoid selecting a point that is not valid (i.e. is padding) as a neighbor.

PiperOrigin-RevId: 282576939

tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo